summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2006-04-11 09:54:32 +0400
committerLinus Torvalds <torvalds@g5.osdl.org>2006-04-11 17:18:45 +0400
commitb3f28a9a26d9e8a02119cc8d1604fdb891c23697 (patch)
tree4c4824ace558ee350d1a1c68701c30d50bdd1bb7
parent4791c03d2c3b9b6822784f6d7c8e5bbadb1f35ae (diff)
downloadlinux-b3f28a9a26d9e8a02119cc8d1604fdb891c23697.tar.xz
[PATCH] hdaps: use ENODEV
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>
-rw-r--r--drivers/hwmon/hdaps.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/hdaps.c b/drivers/hwmon/hdaps.c
index 69897a66b837..1659f6c41458 100644
--- a/drivers/hwmon/hdaps.c
+++ b/drivers/hwmon/hdaps.c
@@ -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;
}