From: Olaf Hering Date: Tue, 8 May 2007 15:22:02 +0000 (+0200) Subject: hwmon/ams: Do not print error on systems without apple motion sensor X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=47a5dba1dca723d890d0b9409c82e72311a1f641;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git 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 Signed-off-by: Andrew Morton Acked-by: Michael Hanselmann Signed-off-by: Jean Delvare --- diff --git a/drivers/hwmon/ams/ams-core.c b/drivers/hwmon/ams/ams-core.c index f5ebad561412..e0098a3fae5d 100644 --- a/drivers/hwmon/ams/ams-core.c +++ b/drivers/hwmon/ams/ams-core.c @@ -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; }