mfd: cros_ec_dev: Add missing mfd_remove_devices() call in remove
authorEnric Balletbo i Serra <enric.balletbo@collabora.com>
Mon, 10 Dec 2018 18:00:02 +0000 (19:00 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 27 Feb 2019 09:08:52 +0000 (10:08 +0100)
commitbeaf260ec8204729cbd8e4b3d19b37ed18b870b2
treed45703abeef92d13fe1d6afe93e0c8123ddf5b8c
parentef1dc506cb50e86687d29b24c462954def12c3b6
mfd: cros_ec_dev: Add missing mfd_remove_devices() call in remove

[ Upstream commit 18e294ddafaeb80a1e2e10c9bd750a6cb8388d5b ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/mfd/cros_ec_dev.c