[PATCH] do not print error on systems without apple motion sensor

From: Olaf Hering
Date: Fri Apr 13 2007 - 12:14:31 EST



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@xxxxxxxxx>

---
drivers/hwmon/ams/ams-core.c | 3 ---
1 file changed, 3 deletions(-)

Index: b/drivers/hwmon/ams/ams-core.c
===================================================================
--- 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;
}

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/