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

Commit c46c0e91 authored by Christian Schulte's avatar Christian Schulte Committed by Jean Delvare
Browse files

hwmon: (w83627hf) Fix for "No such device"



The commit b72656db introduced
a bug leading to the w83627hf_find function no longer finding
any chips.

Signed-off-by: default avatarChristian Schulte <cs@schulte.it>
Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
parent 4235f684
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1135,6 +1135,7 @@ static int __init w83627hf_find(int sioaddr, unsigned short *addr,
		"W83687THF",
	};

	sio_data->sioaddr = sioaddr;
	superio_enter(sio_data);
	val = force_id ? force_id : superio_inb(sio_data, DEVID);
	switch (val) {
@@ -1177,7 +1178,6 @@ static int __init w83627hf_find(int sioaddr, unsigned short *addr,
	}

	err = 0;
	sio_data->sioaddr = sioaddr;
	pr_info(DRVNAME ": Found %s chip at %#x\n",
		names[sio_data->type], *addr);