diff options
-rw-r--r-- | drivers/mfd/mfd-core.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/mfd/mfd-core.c b/drivers/mfd/mfd-core.c index 0454be4266c1..4dc861a7ac56 100644 --- a/drivers/mfd/mfd-core.c +++ b/drivers/mfd/mfd-core.c | |||
@@ -99,8 +99,7 @@ EXPORT_SYMBOL(mfd_add_devices); | |||
99 | 99 | ||
100 | static int mfd_remove_devices_fn(struct device *dev, void *unused) | 100 | static int mfd_remove_devices_fn(struct device *dev, void *unused) |
101 | { | 101 | { |
102 | platform_device_unregister( | 102 | platform_device_unregister(to_platform_device(dev)); |
103 | container_of(dev, struct platform_device, dev)); | ||
104 | return 0; | 103 | return 0; |
105 | } | 104 | } |
106 | 105 | ||