]> err.no Git - linux-2.6/commitdiff
[PATCH] hdaps: use ENODEV
authorAndrew Morton <akpm@osdl.org>
Tue, 11 Apr 2006 05:54:32 +0000 (22:54 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 11 Apr 2006 13:18:45 +0000 (06:18 -0700)
Use ENODEV when the hdaps hardware isn't there, not ENXIO.

Cc: Jean Delvare <khali@linux-fr.org>
Cc: Robert Love <rml@novell.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/hwmon/hdaps.c

index 69897a66b837e45147fefb5a790a6aa14092a6d1..1659f6c414581c9ad737b161edb575073dcd98c6 100644 (file)
@@ -544,7 +544,7 @@ static int __init hdaps_init(void)
 
        if (!dmi_check_system(hdaps_whitelist)) {
                printk(KERN_WARNING "hdaps: supported laptop not found!\n");
-               ret = -ENXIO;
+               ret = -ENODEV;
                goto out;
        }