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

2017-02-24 Thread Rob Herring
On Fri, Feb 24, 2017 at 9:26 AM, Benjamin Gaignard wrote: > 2017-02-24 16:20 GMT+01:00 Rob Herring : >> On Fri, Feb 24, 2017 at 9:13 AM, Benjamin Gaignard >> wrote: >>> 2017-02-24 15:17 GMT+01:00 Rob Herring

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

2017-02-24 Thread Rob Herring
On Fri, Feb 24, 2017 at 9:13 AM, Benjamin Gaignard wrote: > 2017-02-24 15:17 GMT+01:00 Rob Herring : >> On Fri, Feb 17, 2017 at 8:31 AM, Benjamin Gaignard >> wrote: >>> Lost of calls to of_platform_populate() are not

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

2017-02-24 Thread Benjamin Gaignard
2017-02-24 16:20 GMT+01:00 Rob Herring : > On Fri, Feb 24, 2017 at 9:13 AM, Benjamin Gaignard > wrote: >> 2017-02-24 15:17 GMT+01:00 Rob Herring : >>> On Fri, Feb 17, 2017 at 8:31 AM, Benjamin Gaignard >>>

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

2017-02-24 Thread Benjamin Gaignard
2017-02-24 15:17 GMT+01:00 Rob Herring : > On Fri, Feb 17, 2017 at 8:31 AM, Benjamin Gaignard > wrote: >> Lost of calls to of_platform_populate() are not unbalanced by a call > > s/Lost/Lots/ > >> to of_platform_depopulate(). This create issues

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

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

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

2017-02-17 Thread Benjamin Gaignard
Lost 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.