summaryrefslogtreecommitdiff
path: root/drivers/usb
diff options
context:
space:
mode:
authorBartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>2026-07-06 14:44:30 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2026-07-10 16:07:09 +0200
commit16aa2d3847bef0cfbab1ad76f29334369eda2374 (patch)
treefe4c33b4b8f10b38a4eb8bf281ced58b2a51f9f8 /drivers/usb
parent7afe78d6daa374e942a14df8c17311c512c98a02 (diff)
downloadlinux-next-16aa2d3847bef0cfbab1ad76f29334369eda2374.tar.gz
linux-next-16aa2d3847bef0cfbab1ad76f29334369eda2374.zip
usb: musb: use platform_device_set_of_node_from_dev()
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. Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com> Link: https://patch.msgid.link/20260706-pdev-fwnode-ref-v3-18-1ff028e33779@oss.qualcomm.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/musb/jz4740.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/musb/jz4740.c b/drivers/usb/musb/jz4740.c
index df56c972986f..c770ba576f05 100644
--- a/drivers/usb/musb/jz4740.c
+++ b/drivers/usb/musb/jz4740.c
@@ -273,7 +273,7 @@ static int jz4740_probe(struct platform_device *pdev)
musb->dev.parent = dev;
musb->dev.dma_mask = &musb->dev.coherent_dma_mask;
musb->dev.coherent_dma_mask = DMA_BIT_MASK(32);
- device_set_of_node_from_dev(&musb->dev, dev);
+ platform_device_set_of_node_from_dev(musb, dev);
glue->pdev = musb;
glue->clk = clk;