Re: [PATCH v2 2/4] backlight: max8925_bl: fix device-tree node lookup

2017-11-29 Thread Lee Jones
On Mon, 20 Nov 2017, Johan Hovold wrote: > Fix child-node lookup during probe, which ended up searching the whole > device tree depth-first starting at the parent rather than just matching > on its children. > > To make things worse, the parent mfd node was also prematurely freed, > while the chi

[PATCH v2 2/4] backlight: max8925_bl: fix device-tree node lookup

2017-11-21 Thread Johan Hovold
Fix child-node lookup during probe, which ended up searching the whole device tree depth-first starting at the parent rather than just matching on its children. To make things worse, the parent mfd node was also prematurely freed, while the child backlight node was leaked. Fixes: 47ec340cb8e2 ("m

Re: [PATCH v2 2/4] backlight: max8925_bl: fix device-tree node lookup

2017-11-20 Thread Daniel Thompson
On 20/11/17 10:45, Johan Hovold wrote: Fix child-node lookup during probe, which ended up searching the whole device tree depth-first starting at the parent rather than just matching on its children. To make things worse, the parent mfd node was also prematurely freed, while the child backligh