summaryrefslogtreecommitdiffstats
path: root/drivers/staging/unisys
diff options
context:
space:
mode:
authorBenjamin Romer2016-02-23 16:01:49 +0100
committerGreg Kroah-Hartman2016-02-26 07:40:52 +0100
commita5cff2b7d87f737e11e39413bd541f3921648bb9 (patch)
tree8239fcf899e18216f43ae9efeecde395a8bf7c00 /drivers/staging/unisys
parentstaging: octeon-usb: update TODO (diff)
downloadkernel-qcow2-linux-a5cff2b7d87f737e11e39413bd541f3921648bb9.tar.gz
kernel-qcow2-linux-a5cff2b7d87f737e11e39413bd541f3921648bb9.tar.xz
kernel-qcow2-linux-a5cff2b7d87f737e11e39413bd541f3921648bb9.zip
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>
Diffstat (limited to 'drivers/staging/unisys')
-rw-r--r--drivers/staging/unisys/visorbus/visorbus_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/unisys/visorbus/visorbus_main.c b/drivers/staging/unisys/visorbus/visorbus_main.c
index a3013852c0e0..c0badfa5a46f 100644
--- a/drivers/staging/unisys/visorbus/visorbus_main.c
+++ b/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);