Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a00d643a authored by Jeff Mahoney's avatar Jeff Mahoney Committed by Jean Delvare
Browse files

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: default avatarJeff Mahoney <jeffm@suse.com>
Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
parent f6760aa0
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -488,7 +488,7 @@ static int __init smsc47m1_find(unsigned short *addr,
}
}


/* Restore device to its initial state */
/* 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) {
	if ((sio_data->activate & 0x01) == 0) {
		superio_enter();
		superio_enter();