1
0
Fork 0

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>
hifive-unleashed-5.1
Benjamin Romer 2016-02-23 10:01:49 -05:00 committed by Greg Kroah-Hartman
parent 8ad6e09d55
commit a5cff2b7d8
1 changed files with 1 additions and 1 deletions

View File

@ -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);