lkml.org 
[lkml]   [2023]   [Nov]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH v2] usb: dwc3: add missing of_node_put and platform_device_put
From
Date
On 11/14/23 1:16 PM, Stanley Chang wrote:

> of_get_compatible_child performs an of_node_get, so an of_node_get is

You mean of_node_put is required?

> required. Add platform_device_put to match with of_find_device_by_node.
>
> Fixes: 34c200483569 ("usb: dwc3: add Realtek DHC RTD SoC dwc3 glue layer driver")
> Signed-off-by: Stanley Chang <stanley_chang@realtek.com>
> Acked-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com>
> ---
> v1 to v2 change:
> 1. Modify the commit message.
> 2. Add of_node_get in the of_property_read_string() error path.
[...]

MBR, Sergey

\
 
 \ /
  Last update: 2023-11-20 13:58    [W:0.111 / U:0.092 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site