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 <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>
This commit is contained in:
parent
63232dcd55
commit
47a5dba1dc
@ -219,9 +219,6 @@ int __init ams_init(void)
|
|||||||
/* Found PMU motion sensor */
|
/* Found PMU motion sensor */
|
||||||
return ams_pmu_init(np);
|
return ams_pmu_init(np);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
printk(KERN_ERR "ams: No motion sensor found.\n");
|
|
||||||
|
|
||||||
return -ENODEV;
|
return -ENODEV;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user