]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
hwmon/w83627hf: Be quiet when no chip is found
authorJean Delvare <khali@linux-fr.org>
Sun, 27 May 2007 20:17:43 +0000 (22:17 +0200)
committerJean Delvare <khali@hyperion.delvare>
Sun, 27 May 2007 20:17:43 +0000 (22:17 +0200)
Signed-off-by: Jean Delvare <khali@linux-fr.org>
drivers/hwmon/w83627hf.c

index a5b774b07cbde457618d6885fd96d675193f8c11..12cb40a975de90cd61218fe04d146021f79e149a 100644 (file)
@@ -965,8 +965,10 @@ static int __init w83627hf_find(int sioaddr, unsigned short *addr,
        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;
        }