summaryrefslogtreecommitdiff
path: root/drivers/hwmon/ads7828.c
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 09:06:12 -0700
commitac89db9934244f86cd8e58704a8bcf4ba8b1e893 (patch)
tree114a3b37827418bec6e9a2879485ff56b47614c5 /drivers/hwmon/ads7828.c
parent44fc910605e7b0ece4b2151309d6edbefa96517a (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 'drivers/hwmon/ads7828.c')
0 files changed, 0 insertions, 0 deletions