diff options
author | Samuel Iglesias Gonsalvez <siglesias@igalia.com> | 2012-05-23 13:54:41 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-06-07 05:14:07 (GMT) |
commit | be98cc1daa0419f31472c21e45aec30d24fa5931 (patch) | |
tree | 13ddae8e47d18604ce52e272352c468946988f88 /drivers/staging/ipack | |
parent | 862fe87a8bace8b3eb463d117d455d56c5a24488 (diff) | |
download | linux-fsl-qoriq-be98cc1daa0419f31472c21e45aec30d24fa5931.tar.xz |
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>
Diffstat (limited to 'drivers/staging/ipack')
-rw-r--r-- | drivers/staging/ipack/ipack.c | 2 |
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) |