]> git.proxmox.com Git - mirror_ubuntu-eoan-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)
commit7891d37509cca01f383e8349831ee0adc0724e77
tree3aa8fdfa52f6e4163f91942e4b7284dda5514b9b
parent7a6a395b16c3fdcd2ede2b0ce4bf63f6dafc1fea
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