summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamuel Iglesias Gonsalvez <siglesias@igalia.com>2012-05-23 15:54:41 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-06-07 14:14:07 +0900
commitbe98cc1daa0419f31472c21e45aec30d24fa5931 (patch)
tree13ddae8e47d18604ce52e272352c468946988f88
parent862fe87a8bace8b3eb463d117d455d56c5a24488 (diff)
downloadop-kernel-dev-be98cc1daa0419f31472c21e45aec30d24fa5931.zip
op-kernel-dev-be98cc1daa0419f31472c21e45aec30d24fa5931.tar.gz
Staging: ipack: return proper value in match() function
It should return the same value given by the match function of the ipack_driver that has been called. Returning 0 here, means that the match has failed and it could be succeed. Signed-off-by: Samuel Iglesias Gonsalvez <siglesias@igalia.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/ipack/ipack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/ipack/ipack.c b/drivers/staging/ipack/ipack.c
index 2b4fa51..e6dc21a 100644
--- a/drivers/staging/ipack/ipack.c
+++ b/drivers/staging/ipack/ipack.c
@@ -48,7 +48,7 @@ static int ipack_bus_match(struct device *device, struct device_driver *driver)
if (ret)
dev->driver = drv;
- return 0;
+ return ret;
}
static int ipack_bus_probe(struct device *device)
OpenPOWER on IntegriCloud