hwmon/ams: Do not print error on systems without apple motion sensor
authorOlaf Hering <olaf@aepfle.de>
Tue, 8 May 2007 15:22:02 +0000 (17:22 +0200)
committerJean Delvare <khali@hyperion.delvare>
Tue, 8 May 2007 15:22:02 +0000 (17:22 +0200)
It is not an error if a system has no ams hardware.  Do not clutter dmesg
in this case.

Signed-off-by: Olaf Hering <olaf@aepfle.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Acked-by: Michael Hanselmann <linux-kernel@hansmi.ch>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
drivers/hwmon/ams/ams-core.c

index f5ebad5614126d966cfc7e637a6522fda5bf705d..e0098a3fae5d1b55feab4f1a8d045c4dcfd7129a 100644 (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;
 }