Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <jeffm@suse.com>
Signed-off-by: Jean Delvare <khali@linux-fr.org>

authored by

Jeff Mahoney and committed by
Jean Delvare
a00d643a f6760aa0

+1 -1
+1 -1
drivers/hwmon/smsc47m1.c
··· 488 488 } 489 489 490 490 /* Restore device to its initial state */ 491 - static void __init smsc47m1_restore(const struct smsc47m1_sio_data *sio_data) 491 + static void smsc47m1_restore(const struct smsc47m1_sio_data *sio_data) 492 492 { 493 493 if ((sio_data->activate & 0x01) == 0) { 494 494 superio_enter();