diff options
author | Damian Hobson-Garcia <dhobsong@igel.co.jp> | 2013-03-26 10:31:22 +0900 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-06-27 10:39:23 -0700 |
commit | 5a622ab9bca8e5b2882025f7041d72a25cf70c23 (patch) | |
tree | 2459b0ad46f2443c410b9e727f5aba9a6299198f /lib/clz_tab.c | |
parent | c52217e88ae0f3a4ae00562d86e338f8f85969b4 (diff) |
drivers: uio: Fix UIO device registration failure
commit 5ed0505c713805f89473cdc0bbfb5110dfd840cb upstream.
Until recently uio_get_minor() returned 0 for success and
a negative value on failure. This became non-negative for suceess and
negative for failure. Restore the original return value spec so that we can
successfully initialize UIO devices with a non-zero minor device
number.
Signed-off-by: Damian Hobson-Garcia <dhobsong@igel.co.jp>
Cc: "Hans J. Koch" <hjk@hansjkoch.de>
Cc: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'lib/clz_tab.c')
0 files changed, 0 insertions, 0 deletions