Atari keyboard: incorporate additional review comments

Atari keyboard: incorporate additional review comments:
o Kill reference to source file name
o Return error value from input_register_device() instead of -ENOMEM

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Cc: Michael Schmitz <schmitz@biophys.uni-duesseldorf.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by Geert Uytterhoeven and committed by Linus Torvalds 63bd8c48 355aaffd

+4 -5
-2
arch/m68k/atari/atakeyb.c
··· 1 1 /* 2 - * linux/arch/m68k/atari/atakeyb.c 3 - * 4 2 * Atari Keyboard driver for 680x0 Linux 5 3 * 6 4 * This file is subject to the terms and conditions of the GNU General Public
+4 -3
drivers/input/keyboard/atakbd.c
··· 217 217 218 218 static int __init atakbd_init(void) 219 219 { 220 - int i; 220 + int i, error; 221 221 222 222 if (!MACH_IS_ATARI || !ATARIHW_PRESENT(ST_MFP)) 223 223 return -EIO; ··· 247 247 } 248 248 249 249 /* error check */ 250 - if (input_register_device(atakbd_dev)) { 250 + error = input_register_device(atakbd_dev); 251 + if (error) { 251 252 input_free_device(atakbd_dev); 252 - return -ENOMEM; 253 + return error; 253 254 } 254 255 255 256 atari_input_keyboard_interrupt_hook = atakbd_interrupt;