[lm-sensors] [PATCH] hwmon/w83627hf: Be quiet when no chip is found
Jean Delvare
khali at linux-fr.org
Wed May 16 12:00:39 CEST 2007
Signed-off-by: Jean Delvare <khali at linux-fr.org>
---
drivers/hwmon/w83627hf.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
--- linux-2.6.22-rc1.orig/drivers/hwmon/w83627hf.c 2007-05-16 08:55:57.000000000 +0200
+++ linux-2.6.22-rc1/drivers/hwmon/w83627hf.c 2007-05-16 11:56:28.000000000 +0200
@@ -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;
}
--
Jean Delvare
More information about the lm-sensors
mailing list