hwmon/ams: Do not print error on systems without apple motion sensor

It is not an error if a system has no ams hardware.  Do not clutter dmesg
in this case.

Signed-off-by: Olaf Hering <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Acked-by: Michael Hanselmann <[email protected]>
Signed-off-by: Jean Delvare <[email protected]>
This commit is contained in:
Olaf Hering 2007-05-08 17:22:02 +02:00 • committed by Jean Delvare
commit 47a5dba1dc

View file

@ -219,9 +219,6 @@ int __init ams_init(void)
/* Found PMU motion sensor */
return ams_pmu_init(np);
#endif
printk(KERN_ERR "ams: No motion sensor found.\n");
return -ENODEV;
}