From: Akinobu Mita Date: Fri, 3 Nov 2006 04:27:11 +0000 (-0500) Subject: Input: lightning - return proper error codes from l4_init() X-Git-Tag: v2.6.20-rc1~34^2~442 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=6a89bc0004c8d9400439db6167c9887456d5d18d;p=linux-2.6-omap-h63xx.git Input: lightning - return proper error codes from l4_init() Signed-off-by: Akinobu Mita Signed-off-by: Dmitry Torokhov --- diff --git a/drivers/input/gameport/lightning.c b/drivers/input/gameport/lightning.c index d65d8108025..6b4d4561d46 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;