Skip to contentSkip to conversation

hwmon/w83627hf: Be quiet when no chip is found

PATCH New Jean Delvare 1 participant 1 message May 16, 2007 Hardware monitoring

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hwmon/w83627hf: Be quiet when no chip is found

---
 drivers/hwmon/w83627hf.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/hwmon/w83627hf.c +3 -1
@@ -965,8 +965,10 @@ static int __init w83627hf_find(int sioa
 	case W687THF_DEVID:
 		sio_data->type = w83687thf;
 		break;
+	case 0xff:	/* No device at all */
+		goto exit;
 	default:
-		pr_debug(DRVNAME ": Unsupported chip (DEVID=0x%x)\n", val);
+		pr_debug(DRVNAME ": Unsupported chip (DEVID=0x%02x)\n", val);
 		goto exit;
 	}
 
Signature · 6 lines
Jean Delvare

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors