summaryrefslogtreecommitdiffstats
path: root/drivers/mfd/88pm805.c
diff options
context:
space:
mode:
authorCharles Keepax <ckeepax@opensource.wolfsonmicro.com>2012-11-09 16:15:28 +0000
committerSamuel Ortiz <sameo@linux.intel.com>2012-11-20 12:21:12 +0100
commitb9fbb62eb61452d728c39b2e5020739c575aac53 (patch)
tree0cba6c18d652ea5f43972245ea07ef30a639a91f /drivers/mfd/88pm805.c
parentd511b9c3626c83874824b1118f8a2e84ef63a7d3 (diff)
downloadblackbird-obmc-linux-b9fbb62eb61452d728c39b2e5020739c575aac53.tar.gz
blackbird-obmc-linux-b9fbb62eb61452d728c39b2e5020739c575aac53.zip
mfd: Only unregister platform devices allocated by the mfd core
mfd_remove_devices would iterate over all devices sharing a parent with an mfd device regardless of whether they were allocated by the mfd core or not. This especially caused problems when the device structure was not contained within a platform_device, because to_platform_device is used on each device pointer. This patch defines a device_type for mfd devices and checks this is present from mfd_remove_devices_fn before processing the device. Cc: stable@vger.kernel.org Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com> Tested-by: Peter Tyser <ptyser@xes-inc.com> Reviewed-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/mfd/88pm805.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud