From 47a5dba1dca723d890d0b9409c82e72311a1f641 Mon Sep 17 00:00:00 2001 From: Olaf Hering Date: Tue, 8 May 2007 17:22:02 +0200 Subject: [PATCH] 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 --- drivers/hwmon/ams/ams-core.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/hwmon/ams/ams-core.c b/drivers/hwmon/ams/ams-core.c index f5ebad5614..e0098a3fae 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; } -- 2.39.5