diff options
author | Geert Uytterhoeven <geert@linux-m68k.org> | 2008-05-18 20:47:18 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-05-18 13:28:50 -0700 |
commit | fd5b462f0b3ae641e39966d1c6cd0dd66100cda5 (patch) | |
tree | c5334016f71fb0e0807147b73e12e565baf3cb73 /drivers/input | |
parent | eb98630ba02f6a23a2d202be082757a9e9940b2b (diff) | |
download | op-kernel-dev-fd5b462f0b3ae641e39966d1c6cd0dd66100cda5.zip op-kernel-dev-fd5b462f0b3ae641e39966d1c6cd0dd66100cda5.tar.gz |
m68k: Return -ENODEV if no device is found
According to the tests in do_initcalls(), the proper error code in case no
device is found is -ENODEV, not -ENXIO or -EIO.
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/input')
-rw-r--r-- | drivers/input/serio/q40kbd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/serio/q40kbd.c b/drivers/input/serio/q40kbd.c index cb89aff..d962a8d 100644 --- a/drivers/input/serio/q40kbd.c +++ b/drivers/input/serio/q40kbd.c @@ -156,7 +156,7 @@ static int __init q40kbd_init(void) int error; if (!MACH_IS_Q40) - return -EIO; + return -ENODEV; error = platform_driver_register(&q40kbd_driver); if (error) |