[PATCH] hwmon: (it87) Remove useless test during device detection

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



There is no reason to treat the IT8705F differently during device
detection. If a single IT8705F chip indeed answers to both Super-IO
addresses, we have code in place to detect the duplicate device
address and skip the second one.

Signed-off-by: Jean Delvare <jdelvare@xxxxxxx>
Cc: Russell King <linux@xxxxxxxxxxxxxxx>
Cc: Guenter Roeck <linux@xxxxxxxxxxxx>
---
 drivers/hwmon/it87.c |    7 -------
 1 file changed, 7 deletions(-)

--- linux-4.11.orig/drivers/hwmon/it87.c	2017-05-01 04:47:48.000000000 +0200
+++ linux-4.11/drivers/hwmon/it87.c	2017-05-04 11:17:49.868328706 +0200
@@ -3224,13 +3224,6 @@ static int __init sm_it87_init(void)
 			goto exit_dev_unregister;
 
 		found = true;
-
-		/*
-		 * IT8705F may respond on both SIO addresses.
-		 * Stop probing after finding one.
-		 */
-		if (sio_data.type == it87)
-			break;
 	}
 
 	if (!found) {


-- 
Jean Delvare
SUSE L3 Support
--
To unsubscribe from this list: send the line "unsubscribe linux-hwmon" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [LM Sensors]     [Linux Sound]     [ALSA Users]     [ALSA Devel]     [Linux Audio Users]     [Linux Media]     [Kernel]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux