Skip to content

Commit

Permalink
hwmon: (smsc47m1) Fix section mismatch
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jeff Mahoney authored and Jean Delvare committed Jan 25, 2010
1 parent f6760aa commit a00d643
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/hwmon/smsc47m1.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit a00d643

Please sign in to comment.