]> git.baikalelectronics.ru Git - kernel.git/commit
mfd: ti-lmu: Use managed resource for everything
authorPavel Machek <pavel@ucw.cz>
Tue, 11 Sep 2018 21:03:44 +0000 (23:03 +0200)
committerLee Jones <lee.jones@linaro.org>
Tue, 23 Oct 2018 07:58:34 +0000 (08:58 +0100)
commit34c078c058c715d5c07fcf02329947aab9906120
tree3aa8fdfa52f6e4163f91942e4b7284dda5514b9b
parent9a9fc6c854ddfe327408eb367eb1e84cf50b6e19
mfd: ti-lmu: Use managed resource for everything

This replaces all remaining unmanaged resources with device
managed ones, so that the remove function is no longer needed.
This makes the code slightly shorter and fixes two problems:

 1. The hardware is disabled after the child devices have
    been removed. Previously there was a potential race
    condition.
 2. The hardware is disabled when mfd_add_devices fails
    during probe.

Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
Signed-off-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/ti-lmu.c