[PATCH 2/2] of/platform: clarify of_find_device_by_node refcounting

2016-11-01 Thread Johan Hovold
Add comment clarifying that of_find_device_by_node() takes a reference to the embedded struct device which needs to be dropped after use. Note that most current users fail to do so. Signed-off-by: Johan Hovold --- drivers/of/platform.c | 3 +++ 1 file changed, 3 insertions(+)

[PATCH 2/2] of/platform: clarify of_find_device_by_node refcounting

2016-11-01 Thread Johan Hovold
Add comment clarifying that of_find_device_by_node() takes a reference to the embedded struct device which needs to be dropped after use. Note that most current users fail to do so. Signed-off-by: Johan Hovold --- drivers/of/platform.c | 3 +++ 1 file changed, 3 insertions(+) diff --git