mirror of
https://github.com/torvalds/linux.git
synced 2026-09-22 04:34:03 +02:00
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>
This commit is contained in:
parent
7afe78d6da
commit
16aa2d3847
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user