On Tue, Apr 02, 2019 at 10:12:38PM +0800, Peng Hao wrote:
>
> of_find_device_by_node() takes a reference to the struct device
> when it finds a match via get_device. When returning error we should
> call put_device.
>
> Reviewed-by: Mukesh Ojha
> Signed-off-by: Peng Hao
Thanks applied to
of_find_device_by_node() takes a reference to the struct device
when it finds a match via get_device. When returning error we should
call put_device.
Reviewed-by: Mukesh Ojha
Signed-off-by: Peng Hao
---
arch/arm/mach-at91/pm.c | 6 --
1 file changed, 4 insertions(+), 2 deletions(-)
diff
2 matches
Mail list logo