gs2971: cleanup
adv7180: allow second IPU to be used
TW68-core: check return values for errors
gs2971: release ecspi2 cs after transaction
board-mx6_per: gs2971 is cs0, wm5192 is cs1, so swap to reduce confusion
adv7180: change i2c errors to dev_err instead of dev_dbg
adv7180: move global video_idx to structure
board-mx6_per: disable gigabit
board-mx6_per: wm5102 codec changes
mach/irqs: add more irqs for CONFIG_MACH_MX6_PER
imx-wm5102: initial addition
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>
soc-core: print error message in snd_soc_update_bits
soc-core: add debug code to print last regsiter accesses
spi_imx: add debug code to print last written values