Staging: ipack: return proper value in match() function
authorSamuel Iglesias Gonsalvez <siglesias@igalia.com>
Wed, 23 May 2012 13:54:41 +0000 (15:54 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 7 Jun 2012 05:14:07 +0000 (14:14 +0900)
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>
drivers/staging/ipack/ipack.c

index 2b4fa51bf167a81d67ec59a719dd5e2bd906d564..e6dc21a47a0ad40ebd6e8c4e0e22e8d956024e3a 100644 (file)
@@ -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)