aboutsummaryrefslogtreecommitdiff
path: root/arch/x86
diff options
context:
space:
mode:
authorJean Delvare <khali@linux-fr.org>2010-01-31 04:03:23 +0000
committerGreg Kroah-Hartman <gregkh@suse.de>2010-03-15 08:49:47 -0700
commit2451bd963fac237ff5545b28b399cd952bffc035 (patch)
tree77096b57d537819d3807471d0731f03656526d50 /arch/x86
parent23e87a47dce919c82073e0ab0b741f35954c7512 (diff)
macintosh/hwmon/ams: Fix device removal sequence
commit 98ceb75c7c14eada76b0aa9f03a635a735cee3cb upstream. 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> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'arch/x86')
0 files changed, 0 insertions, 0 deletions