From: Alexey Dobriyan Date: Fri, 6 Jun 2008 05:46:03 +0000 (-0700) Subject: edd: fix incorrect return of 1 from module_init X-Git-Tag: v2.6.26-rc6~82 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f6266e34713dc286b52623d8a4ff846973c0bcce;p=linux-2.6 edd: fix incorrect return of 1 from module_init Signed-off-by: Alexey Dobriyan Cc: Matt Domsch Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/firmware/edd.c b/drivers/firmware/edd.c index 7440119890..9e4f59dc7f 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);