Skip to contentSkip to conversation

hwmon: (coretemp) Fix section mismatch

PATCH Applied Jean Delvare 2 participants 2 messages May 26, 2011

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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.

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
#1 lore raw
Quoted 7 lines · Jean Delvare

chk_ucode_version() is only called from coretemp_probe() which is __devinit, so it can be marked __devinit too.

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