summaryrefslogtreecommitdiffstats
path: root/drivers/input/gameport
diff options
context:
space:
mode:
authorAkinobu Mita <akinobu.mita@gmail.com>2006-11-02 23:27:11 -0500
committerDmitry Torokhov <dtor@insightbb.com>2006-11-02 23:27:11 -0500
commit6a89bc0004c8d9400439db6167c9887456d5d18d (patch)
tree39f768cf55b7a5c036aea0eb10fed7c3f54a4d6e /drivers/input/gameport
parent1447190e39847cc2cc8a826e7061989c83ff4362 (diff)
downloadlinux-6a89bc0004c8d9400439db6167c9887456d5d18d.tar.bz2
Input: lightning - return proper error codes from l4_init()
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/input/gameport')
-rw-r--r--drivers/input/gameport/lightning.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/input/gameport/lightning.c b/drivers/input/gameport/lightning.c
index d65d81080257..6b4d4561d465 100644
--- a/drivers/input/gameport/lightning.c
+++ b/drivers/input/gameport/lightning.c
@@ -309,7 +309,7 @@ static int __init l4_init(void)
int i, cards = 0;
if (!request_region(L4_PORT, 1, "lightning"))
- return -1;
+ return -EBUSY;
for (i = 0; i < 2; i++)
if (l4_add_card(i) == 0)
@@ -319,7 +319,7 @@ static int __init l4_init(void)
if (!cards) {
release_region(L4_PORT, 1);
- return -1;
+ return -ENODEV;
}
return 0;