hwmon: (coretemp) Fix section mismatch
Subsystems (2)
PATCH 1/1 hwmon: (coretemp) Fix section mismatch
chk_ucode_version() is only called from coretemp_probe() which is __devinit, so it can be marked __devinit too.
Signed-off-by Jean Delvare <[email protected]>
Cc Durgadoss R <[email protected]>
Cc Fenghua Yu <[email protected]>
Cc Guenter Roeck <[email protected]>
--- drivers/hwmon/coretemp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/hwmon/coretemp.c +1 -1
@@ -422,7 +422,7 @@ static void update_ttarget(__u8 cpu_mode } } -static int chk_ucode_version (struct platform_device *pdev) +static int __devinit chk_ucode_version (struct platform_device *pdev) {struct cpuinfo_x86 *c = &cpu_data (pdev->id);int err;
Signature · 6 lines
Jean Delvare _______________________________________________ lm-sensors mailing list [email protected] http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Guenter Roeck
AppliedQuoted 7 lines · Jean Delvare
chk_ucode_version()is only called fromcoretemp_probe()which is__devinit, so it can be marked__devinittoo.Signed-off-by Jean Delvare <[email protected]>Cc Durgadoss R <[email protected]>Cc Fenghua Yu <[email protected]>Cc Guenter Roeck <[email protected]>
Applied, thanks.
Guenter
_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors