Skip to content

Commit

Permalink
edd: fix incorrect return of 1 from module_init
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Alexey Dobriyan authored and Linus Torvalds committed Jun 6, 2008
1 parent d3e49af commit f6266e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/firmware/edd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f6266e3

Please sign in to comment.