Re: [PATCH v2 1/2] of: add devm_ functions for populate and depopulate

2017-02-27 Thread Daniel Vetter
On Mon, Feb 27, 2017 at 07:30:24AM -0600, Rob Herring wrote: > On Sun, Feb 26, 2017 at 2:11 PM, Daniel Vetter wrote: > > On Fri, Feb 24, 2017 at 10:31:25AM -0600, Rob Herring wrote: > >> On Fri, Feb 24, 2017 at 10:14 AM, Benjamin Gaignard > >>

Re: [PATCH v2 1/2] of: add devm_ functions for populate and depopulate

2017-02-27 Thread Rob Herring
On Sun, Feb 26, 2017 at 2:11 PM, Daniel Vetter wrote: > On Fri, Feb 24, 2017 at 10:31:25AM -0600, Rob Herring wrote: >> On Fri, Feb 24, 2017 at 10:14 AM, Benjamin Gaignard >> wrote: >> > Lots of calls to of_platform_populate() are not unbalanced by

Re: [PATCH v2 1/2] of: add devm_ functions for populate and depopulate

2017-02-26 Thread Daniel Vetter
On Fri, Feb 24, 2017 at 10:31:25AM -0600, Rob Herring wrote: > On Fri, Feb 24, 2017 at 10:14 AM, Benjamin Gaignard > wrote: > > Lots of calls to of_platform_populate() are not unbalanced by a call > > to of_platform_depopulate(). This create issues while drivers are

Re: [PATCH v2 1/2] of: add devm_ functions for populate and depopulate

2017-02-24 Thread Rob Herring
On Fri, Feb 24, 2017 at 10:14 AM, Benjamin Gaignard wrote: > Lots of calls to of_platform_populate() are not unbalanced by a call > to of_platform_depopulate(). This create issues while drivers are > bind/unbind. > > In way to solve those issues is to add

[PATCH v2 1/2] of: add devm_ functions for populate and depopulate

2017-02-24 Thread Benjamin Gaignard
Lots of calls to of_platform_populate() are not unbalanced by a call to of_platform_depopulate(). This create issues while drivers are bind/unbind. In way to solve those issues is to add devm_of_platform_populate() which will call of_platform_depopulate() when the device is unbound from the bus.