On 26-05-21 10:36:43, Bartosz Golaszewski wrote:
> Ahead of reworking the reference counting logic for platform devices,
> encapsulate the assignment of the OF node from another device for
> dynamically allocated platform devices with the provided helper.
> 
> Signed-off-by: Bartosz Golaszewski <[email protected]>

Acked-by: Peter Chen <[email protected]>

Peter
> ---
>  drivers/usb/chipidea/core.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/usb/chipidea/core.c b/drivers/usb/chipidea/core.c
> index 
> 7cfabb04a4fb80c6db56ccb430d290dbac61b716..5dd415f42fe0dd026e8a1cc162357e42ba8ceaec
>  100644
> --- a/drivers/usb/chipidea/core.c
> +++ b/drivers/usb/chipidea/core.c
> @@ -888,7 +888,7 @@ struct platform_device *ci_hdrc_add_device(struct device 
> *dev,
>       }
>  
>       pdev->dev.parent = dev;
> -     device_set_of_node_from_dev(&pdev->dev, dev);
> +     platform_device_set_of_node_from_dev(pdev, dev);
>  
>       ret = platform_device_add_resources(pdev, res, nres);
>       if (ret)
> 
> -- 
> 2.47.3
> 

-- 

Best regards,
Peter

Reply via email to