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>
This commit is contained in:
parent
8ad6e09d55
commit
a5cff2b7d8
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue