浏览代码

staging: unisys: fix return value for visorbus pci probe

Instead of returning -1, return -ENODEV when there is no probe function
found for the device.

Signed-off-by: Benjamin Romer <benjamin.romer@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Benjamin Romer 9 年之前
父节点
当前提交
a5cff2b7d8
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/staging/unisys/visorbus/visorbus_main.c

+ 1 - 1
drivers/staging/unisys/visorbus/visorbus_main.c

@@ -771,7 +771,7 @@ visordriver_probe_device(struct device *xdev)
 	get_device(&dev->device);
 	get_device(&dev->device);
 	if (!drv->probe) {
 	if (!drv->probe) {
 		up(&dev->visordriver_callback_lock);
 		up(&dev->visordriver_callback_lock);
-		rc = -1;
+		rc = -ENODEV;
 		goto away;
 		goto away;
 	}
 	}
 	rc = drv->probe(dev);
 	rc = drv->probe(dev);