From: Jeff Mahoney Date: Mon, 25 Jan 2010 14:00:48 +0000 (+0100) Subject: hwmon: (smsc47m1) Fix section mismatch X-Git-Tag: MMI-PSA29.97-13-9~25087^2~3 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a00d643a2a841e76dfb76ec4f8a1e71844252974;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git hwmon: (smsc47m1) Fix section mismatch smsc47m1_restore is called from sm_smsc47m1_exit, which is an __exit function, so it can't be __init. Signed-off-by: Jeff Mahoney Signed-off-by: Jean Delvare --- diff --git a/drivers/hwmon/smsc47m1.c b/drivers/hwmon/smsc47m1.c index 9ca97818bd4b..8fa462f2b570 100644 --- a/drivers/hwmon/smsc47m1.c +++ b/drivers/hwmon/smsc47m1.c @@ -488,7 +488,7 @@ static int __init smsc47m1_find(unsigned short *addr, } /* Restore device to its initial state */ -static void __init smsc47m1_restore(const struct smsc47m1_sio_data *sio_data) +static void smsc47m1_restore(const struct smsc47m1_sio_data *sio_data) { if ((sio_data->activate & 0x01) == 0) { superio_enter();