mirror of
https://github.com/torvalds/linux.git
synced 2024-12-20 10:01:56 +00:00
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>
This commit is contained in:
parent
862fe87a8b
commit
be98cc1daa
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user