mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] Atari keyboard: incorporate additional review comments
@ 2007-10-15 19:51 Geert Uytterhoeven
  2007-10-17  7:13 ` Michael Schmitz
  0 siblings, 1 reply; 2+ messages in thread
From: Geert Uytterhoeven @ 2007-10-15 19:51 UTC (permalink / raw)
  To: Linus Torvalds, Andrew Morton, Dmitry Torokhov
  Cc: linux-input, Linux/m68k, Linux Kernel Development

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>
---
 arch/m68k/atari/atakeyb.c       |    2 --
 drivers/input/keyboard/atakbd.c |    7 ++++---
 2 files changed, 4 insertions(+), 5 deletions(-)

--- a/arch/m68k/atari/atakeyb.c
+++ b/arch/m68k/atari/atakeyb.c
@@ -1,6 +1,4 @@
 /*
- * linux/arch/m68k/atari/atakeyb.c
- *
  * Atari Keyboard driver for 680x0 Linux
  *
  * This file is subject to the terms and conditions of the GNU General Public
--- a/drivers/input/keyboard/atakbd.c
+++ b/drivers/input/keyboard/atakbd.c
@@ -217,7 +217,7 @@ static void atakbd_interrupt(unsigned ch
 
 static int __init atakbd_init(void)
 {
-	int i;
+	int i, error;
 
 	if (!MACH_IS_ATARI || !ATARIHW_PRESENT(ST_MFP))
 		return -EIO;
@@ -247,9 +247,10 @@ static int __init atakbd_init(void)
 	}
 
 	/* error check */
-	if (input_register_device(atakbd_dev)) {
+	error = input_register_device(atakbd_dev);
+	if (error) {
 		input_free_device(atakbd_dev);
-		return -ENOMEM;
+		return error;
 	}
 
 	atari_input_keyboard_interrupt_hook = atakbd_interrupt;

Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
							    -- Linus Torvalds

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] Atari keyboard: incorporate additional review comments
  2007-10-15 19:51 [PATCH] Atari keyboard: incorporate additional review comments Geert Uytterhoeven
@ 2007-10-17  7:13 ` Michael Schmitz
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Schmitz @ 2007-10-17  7:13 UTC (permalink / raw)
  To: Geert Uytterhoeven
  Cc: Linus Torvalds, Andrew Morton, Dmitry Torokhov, linux-input,
	Linux/m68k, Linux Kernel Development

On Mon, 15 Oct 2007, Geert Uytterhoeven wrote:

> 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>

Ack, Ack  ...

Thanks, Geert! Can't wait to get my Falcon back outta the container ...

	Michael



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-10-17  7:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-10-15 19:51 [PATCH] Atari keyboard: incorporate additional review comments Geert Uytterhoeven
2007-10-17  7:13 ` Michael Schmitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®