Re: [PATCHv4 03/10] mfd: ti-lmu: use managed resource for everything

From
Lee Jones <hidden>
Date
2018-04-16 14:38:07
Also in
linux-devicetree, linux-omap, lkml
Reply to
Sebastian Reichel, 2018-03-30
On Fri, 30 Mar 2018, Sebastian Reichel wrote:
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 <redacted>
---
 drivers/mfd/ti-lmu.c | 21 ++++++++-------------
 1 file changed, 8 insertions(+), 13 deletions(-)
For my own reference:
  Acked-for-MFD-by: Lee Jones [off-list ref]

-- 
Lee Jones [李琼斯]
Linaro Services Technical Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
Thread (30 messages) 30 messages, 6 authors, last reply 2018-04-16
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help