From: Benjamin Romer Date: Tue, 23 Feb 2016 15:01:49 +0000 (-0500) Subject: staging: unisys: fix return value for visorbus pci probe X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a5cff2b7d87f737e11e39413bd541f3921648bb9;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Greg Kroah-Hartman --- 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);