Home
last modified time | relevance | path

Searched hist:"38 b0b219fbe89d824213beabf03bfb00b5d2c8fa" (Results 1 – 2 of 2) sorted by relevance

/linux/include/linux/
H A Dof_platform.hdiff 38b0b219fbe89d824213beabf03bfb00b5d2c8fa Fri Feb 24 17:14:33 CET 2017 Benjamin Gaignard <benjamin.gaignard@linaro.org> of: add devm_ functions for populate and depopulate

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>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1487952874-23635-2-git-send-email-benjamin.gaignard@linaro.org
/linux/drivers/of/
H A Dplatform.cdiff 38b0b219fbe89d824213beabf03bfb00b5d2c8fa Fri Feb 24 17:14:33 CET 2017 Benjamin Gaignard <benjamin.gaignard@linaro.org> of: add devm_ functions for populate and depopulate

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>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1487952874-23635-2-git-send-email-benjamin.gaignard@linaro.org