1
0
Fork 0

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: 5e0115581b ("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>
hifive-unleashed-5.1
Enric Balletbo i Serra 2018-12-10 19:00:02 +01:00 committed by Lee Jones
parent ea90e7b47f
commit 18e294ddaf
1 changed files with 1 additions and 0 deletions

View File

@ -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;