From: Jean Delvare Date: Sun, 31 Jan 2010 04:03:23 +0000 (+0000) Subject: macintosh/hwmon/ams: Fix device removal sequence X-Git-Tag: v2.6.34-rc1~271^2~66 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=98ceb75c7c14eada76b0aa9f03a635a735cee3cb;p=pandora-kernel.git 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 Tested-by: Christian Kujau Cc: Benjamin Herrenschmidt Cc: Stelian Pop Cc: Michael Hanselmann Cc: stable@kernel.org Signed-off-by: Benjamin Herrenschmidt --- Reading git-diff-tree failed