summaryrefslogtreecommitdiff
path: root/drivers/input/keyboard/atakbd.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/input/keyboard/atakbd.c')
-rw-r--r--drivers/input/keyboard/atakbd.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/input/keyboard/atakbd.c b/drivers/input/keyboard/atakbd.c
index 1839194ea987..10bcd4ae5402 100644
--- a/drivers/input/keyboard/atakbd.c
+++ b/drivers/input/keyboard/atakbd.c
@@ -223,8 +223,9 @@ static int __init atakbd_init(void)
return -ENODEV;
// need to init core driver if not already done so
- if (atari_keyb_init())
- return -ENODEV;
+ error = atari_keyb_init();
+ if (error)
+ return error;
atakbd_dev = input_allocate_device();
if (!atakbd_dev)