mfd: Use to_platform_device instead of container_of

Convert mfd_remove_devices_fn() to use to_platform_device()
instead of doing container_of().

Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Acked-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
Signed-off-by: Samuel Ortiz <sameo@openedhand.com>

authored by Ben Dooks and committed by Samuel Ortiz 96ee4199 c9272c4f

+1 -2
+1 -2
drivers/mfd/mfd-core.c
··· 99 99 100 100 static int mfd_remove_devices_fn(struct device *dev, void *unused) 101 101 { 102 - platform_device_unregister( 103 - container_of(dev, struct platform_device, dev)); 102 + platform_device_unregister(to_platform_device(dev)); 104 103 return 0; 105 104 } 106 105