Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a5cff2b7 authored by Benjamin Romer's avatar Benjamin Romer Committed by Greg Kroah-Hartman
Browse files

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: default avatarBenjamin Romer <benjamin.romer@unisys.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 8ad6e09d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);