mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-10 03:20:25 -04:00
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:
committed by
Greg Kroah-Hartman
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);
|
||||
|
||||
Reference in New Issue
Block a user