linux-sg2042/drivers/hwmon/ams
Jean Delvare 98ceb75c7c macintosh/hwmon/ams: Fix device removal sequence
Some code that is in ams_exit() (the module exit code) should instead
be called when the device (not module) is removed. It probably doesn't
make much of a difference in the PMU case, but in the I2C case it does
matter.

I make no guarantee that my fix isn't racy, I'm not familiar enough
with the ams driver code to tell for sure.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Tested-by: Christian Kujau <lists@nerdbynature.de>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Stelian Pop <stelian@popies.net>
Cc: Michael Hanselmann <linux-kernel@hansmi.ch>
Cc: stable@kernel.org
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
2010-02-03 17:39:49 +11:00
..
Makefile hwmon: New AMS hardware monitoring driver 2006-12-12 18:18:30 +01:00
ams-core.c macintosh/hwmon/ams: Fix device removal sequence 2010-02-03 17:39:49 +11:00
ams-i2c.c macintosh/hwmon/ams: Fix device removal sequence 2010-02-03 17:39:49 +11:00
ams-input.c hwmon: (ams) Fix locking issues 2008-10-17 17:51:12 +02:00
ams-pmu.c macintosh/hwmon/ams: Fix device removal sequence 2010-02-03 17:39:49 +11:00
ams.h macintosh/hwmon/ams: Fix device removal sequence 2010-02-03 17:39:49 +11:00