Skip to content

Commit

Permalink
[PATCH] hdaps: use ENODEV
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Andrew Morton authored and Linus Torvalds committed Apr 11, 2006
1 parent 4791c03 commit b3f28a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/hwmon/hdaps.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit b3f28a9

Please sign in to comment.