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>
This commit is contained in:
Alexey Dobriyan 2008-06-05 22:46:03 -07:00 committed by Linus Torvalds
parent d3e49afbb6
commit f6266e3471
1 changed files with 1 additions and 1 deletions

View File

@ -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);