summaryrefslogtreecommitdiff
path: root/drivers/input/serio
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert@linux-m68k.org>2008-05-18 22:47:18 +0400
committerLinus Torvalds <torvalds@linux-foundation.org>2008-05-19 00:28:50 +0400
commitfd5b462f0b3ae641e39966d1c6cd0dd66100cda5 (patch)
treec5334016f71fb0e0807147b73e12e565baf3cb73 /drivers/input/serio
parenteb98630ba02f6a23a2d202be082757a9e9940b2b (diff)
downloadlinux-fd5b462f0b3ae641e39966d1c6cd0dd66100cda5.tar.xz
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/serio')
-rw-r--r--drivers/input/serio/q40kbd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/serio/q40kbd.c b/drivers/input/serio/q40kbd.c
index cb89aff2e160..d962a8d78b14 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)