diff options
author | Enric Balletbo i Serra <enric.balletbo@collabora.com> | 2018-12-10 19:00:02 +0100 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2019-01-03 08:32:42 +0000 |
commit | 18e294ddafaeb80a1e2e10c9bd750a6cb8388d5b (patch) | |
tree | 77920bd077822256c12312bc14899e0c143ffead /drivers/mfd | |
parent | ea90e7b47f0a8bd2fe14e9a88f523de7c67db90a (diff) | |
download | linux-18e294ddafaeb80a1e2e10c9bd750a6cb8388d5b.tar.bz2 |
mfd: cros_ec_dev: Add missing mfd_remove_devices() call in remove
The driver adds different MFD child devices via mfd_add_devices() and
hence it is required to call mfd_remove_devices() to remove MFD child
devices.
Fixes: 5e0115581bbc ("cros_ec: Move cros_ec_dev module to drivers/mfd")
Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/mfd')
-rw-r--r-- | drivers/mfd/cros_ec_dev.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mfd/cros_ec_dev.c b/drivers/mfd/cros_ec_dev.c index 8f9d6964173e..ff788d3e6d5f 100644 --- a/drivers/mfd/cros_ec_dev.c +++ b/drivers/mfd/cros_ec_dev.c @@ -493,6 +493,7 @@ static int ec_device_remove(struct platform_device *pdev) cros_ec_debugfs_remove(ec); + mfd_remove_devices(ec->dev); cdev_del(&ec->cdev); device_unregister(&ec->class_dev); return 0; |