From: Samuel Iglesias Gonsalvez Date: Wed, 23 May 2012 13:54:41 +0000 (+0200) Subject: Staging: ipack: return proper value in match() function X-Git-Tag: next-20120724~21^2~913 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=be98cc1daa0419f31472c21e45aec30d24fa5931;p=karo-tx-linux.git 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/ipack/ipack.c b/drivers/staging/ipack/ipack.c index 2b4fa51bf167..e6dc21a47a0a 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)