Skip to content

Commit

Permalink
Staging: ipack: return proper value in match() function
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Samuel Iglesias Gonsalvez authored and Greg Kroah-Hartman committed Jun 7, 2012
1 parent 862fe87 commit be98cc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/ipack/ipack.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit be98cc1

Please sign in to comment.