Commit 6a89bc00 authored by Akinobu Mita's avatar Akinobu Mita Committed by Dmitry Torokhov

Input: lightning - return proper error codes from l4_init()

Signed-off-by: default avatarAkinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
parent 1447190e
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment