From: Andrew Morton Date: Tue, 11 Apr 2006 05:54:32 +0000 (-0700) Subject: [PATCH] hdaps: use ENODEV X-Git-Tag: firefly_0821_release~36266 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=b3f28a9a26d9e8a02119cc8d1604fdb891c23697;p=firefly-linux-kernel-4.4.55.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 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; }