summaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/coretemp.c
diff options
context:
space:
mode:
authorJean Delvare <khali@linux-fr.org>2011-05-26 12:01:54 +0200
committerGuenter Roeck <guenter.roeck@ericsson.com>2011-05-27 11:24:54 +0200
commit582e1b270f6db93007f9af86d4f28fdad3da0505 (patch)
tree3328607f175a014556f486ead4c2ded414d02ef0 /drivers/hwmon/coretemp.c
parenthwmon: (pmbus) Initialize sysfs attributes (diff)
downloadlinux-582e1b270f6db93007f9af86d4f28fdad3da0505.tar.xz
linux-582e1b270f6db93007f9af86d4f28fdad3da0505.zip
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 <khali@linux-fr.org> Cc: Durgadoss R <durgadoss.r@intel.com> Cc: Fenghua Yu <fenghua.yu@intel.com> Cc: Guenter Roeck <guenter.roeck@ericsson.com> Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
Diffstat (limited to 'drivers/hwmon/coretemp.c')
-rw-r--r--drivers/hwmon/coretemp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/coretemp.c b/drivers/hwmon/coretemp.c
index 833d51ff43b3..de3d2465fe24 100644
--- a/drivers/hwmon/coretemp.c
+++ b/drivers/hwmon/coretemp.c
@@ -424,7 +424,7 @@ static void update_ttarget(__u8 cpu_model, struct temp_data *tdata,
}
}
-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;