diff options
author | Jean Delvare | 2010-01-31 05:03:23 +0100 |
---|---|---|
committer | Benjamin Herrenschmidt | 2010-02-03 07:39:49 +0100 |
commit | 98ceb75c7c14eada76b0aa9f03a635a735cee3cb (patch) | |
tree | d514b307399db60cdbc1fd9461e8b5af5655ca0a /include/linux/lmb.h | |
parent | macintosh/therm_adt746x: Fix sysfs attributes lifetime (diff) | |
download | kernel-qcow2-linux-98ceb75c7c14eada76b0aa9f03a635a735cee3cb.tar.gz kernel-qcow2-linux-98ceb75c7c14eada76b0aa9f03a635a735cee3cb.tar.xz kernel-qcow2-linux-98ceb75c7c14eada76b0aa9f03a635a735cee3cb.zip |
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>
Diffstat (limited to 'include/linux/lmb.h')
0 files changed, 0 insertions, 0 deletions