Files
linux/drivers/mfd
Charles Keepax 2c44276891 mfd: Only unregister platform devices allocated by the mfd core
commit b9fbb62eb6 upstream.

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.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-01-17 08:43:54 -08:00
..
2011-03-23 10:41:43 +01:00
2012-03-12 10:33:10 -07:00
2011-05-24 22:19:37 +02:00
2011-03-27 00:09:51 +01:00
2011-03-23 10:42:03 +01:00
2011-03-27 00:09:51 +01:00
2011-03-27 00:09:51 +01:00
2010-12-24 16:00:17 +01:00
2011-03-31 11:26:23 -03:00
2011-05-26 19:45:28 +02:00
2011-05-26 19:45:28 +02:00
2011-03-27 00:09:51 +01:00
2010-08-12 11:28:00 +02:00
2011-03-27 00:09:51 +01:00
2011-03-27 00:09:51 +01:00
2010-08-12 11:27:59 +02:00
2011-03-31 11:26:23 -03:00
2011-03-23 10:41:59 +01:00
2011-05-26 19:45:20 +02:00
2011-03-27 00:09:51 +01:00
2011-03-27 00:09:51 +01:00