Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1587774
| From | Rob Herring <robh+dt@kernel.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v2 1/2] of: add devm_ functions for populate and depopulate |
| Date | 2017-02-24 17:40 +0100 |
| Message-ID | <ter4t-2Kh-3@gated-at.bofh.it> (permalink) |
| References | <teqL7-2Ds-3@gated-at.bofh.it> <teqL7-2Ds-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Fri, Feb 24, 2017 at 10:14 AM, Benjamin Gaignard <benjamin.gaignard@linaro.org> 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 devm_of_platform_populate() > which will call of_platform_depopulate() when the device is unbound > from the bus. > > Signed-off-by: Benjamin Gaignard <benjamin.gaignard@linaro.org> > --- > version 2: > - simplify function prototype to only keep device as parameter > > drivers/of/platform.c | 71 +++++++++++++++++++++++++++++++++++++++++++++ > include/linux/of_platform.h | 11 +++++++ > 2 files changed, 82 insertions(+) For this and patch 2: Acked-by: Rob Herring <robh@kernel.org> Rob
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH v2 1/2] of: add devm_ functions for populate and depopulate Benjamin Gaignard <benjamin.gaignard@linaro.org> - 2017-02-24 17:20 +0100
Re: [PATCH v2 1/2] of: add devm_ functions for populate and depopulate Rob Herring <robh+dt@kernel.org> - 2017-02-24 17:40 +0100
Re: [PATCH v2 1/2] of: add devm_ functions for populate and depopulate Daniel Vetter <daniel@ffwll.ch> - 2017-02-26 21:20 +0100
Re: [PATCH v2 1/2] of: add devm_ functions for populate and depopulate Rob Herring <robh+dt@kernel.org> - 2017-02-27 14:50 +0100
Re: [PATCH v2 1/2] of: add devm_ functions for populate and depopulate Daniel Vetter <daniel@ffwll.ch> - 2017-02-27 17:50 +0100
csiph-web