From: Andrew Morton Date: Tue, 11 Apr 2006 05:54:32 +0000 (-0700) Subject: [PATCH] hdaps: use ENODEV X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=b3f28a9a26d9e8a02119cc8d1604fdb891c23697;p=mv-sheeva.git [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 69897a66b83..1659f6c4145 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; }