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(+)
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
2 matches
Mail list logo