From: Andrew Morton Date: Tue, 11 Apr 2006 05:54:32 +0000 (-0700) Subject: [PATCH] hdaps: use ENODEV X-Git-Tag: v2.6.17-rc2~172 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b3f28a9a26d9e8a02119cc8d1604fdb891c23697;p=linux-2.6 [PATCH] hdaps: use ENODEV Use ENODEV when the hdaps hardware isn't there, not ENXIO. Cc: Jean Delvare Cc: Robert Love Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/hwmon/hdaps.c b/drivers/hwmon/hdaps.c index 69897a66b8..1659f6c414 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; }