Ver Fonte

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 há 9 anos atrás
pai
commit
a5cff2b7d8
1 ficheiros alterados com 1 adições e 1 exclusões
  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);
 	if (!drv->probe) {
 		up(&dev->visordriver_callback_lock);
-		rc = -1;
+		rc = -ENODEV;
 		goto away;
 	}
 	rc = drv->probe(dev);