浏览代码

hwmon/w83627hf: Be quiet when no chip is found

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Jean Delvare 18 年之前
父节点
当前提交
e142e2a307
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      drivers/hwmon/w83627hf.c

+ 3 - 1
drivers/hwmon/w83627hf.c

@@ -965,8 +965,10 @@ static int __init w83627hf_find(int sioaddr, unsigned short *addr,
 	case W687THF_DEVID:
 	case W687THF_DEVID:
 		sio_data->type = w83687thf;
 		sio_data->type = w83687thf;
 		break;
 		break;
+	case 0xff:	/* No device at all */
+		goto exit;
 	default:
 	default:
-		pr_debug(DRVNAME ": Unsupported chip (DEVID=0x%x)\n", val);
+		pr_debug(DRVNAME ": Unsupported chip (DEVID=0x%02x)\n", val);
 		goto exit;
 		goto exit;
 	}
 	}