summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Dobriyan <adobriyan@gmail.com>2008-06-06 09:46:03 +0400
committerLinus Torvalds <torvalds@linux-foundation.org>2008-06-06 22:29:09 +0400
commitf6266e34713dc286b52623d8a4ff846973c0bcce (patch)
treed6c42004566e9143662e339b111aaeab482b21b8
parentd3e49afbb66109613c3474f2273f5830ac2dcb09 (diff)
downloadlinux-f6266e34713dc286b52623d8a4ff846973c0bcce.tar.xz
edd: fix incorrect return of 1 from module_init
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Cc: Matt Domsch <Matt_Domsch@dell.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r--drivers/firmware/edd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/firmware/edd.c b/drivers/firmware/edd.c
index 744011989044..9e4f59dc7f1e 100644
--- a/drivers/firmware/edd.c
+++ b/drivers/firmware/edd.c
@@ -753,7 +753,7 @@ edd_init(void)
if (!edd_num_devices()) {
printk(KERN_INFO "EDD information not available.\n");
- return 1;
+ return -ENODEV;
}
edd_kset = kset_create_and_add("edd", NULL, firmware_kobj);