lkml.org 
[lkml]   [2017]   [Feb]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH v2 1/2] of: add devm_ functions for populate and depopulate
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

\
 
 \ /
  Last update: 2017-02-24 17:31    [W:0.098 / U:0.140 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site