Skip to contentSkip to conversation

dmaengine: qcom: hidma_mgmt: Remove redundant 'child' assignment.

PATCH New Liang He 1 participant 1 message Jul 8, 2022

Subsystems (3)
lore
Share & tools
lore

Liang He

author
#0 lore raw

PATCH 1/1 dmaengine: qcom: hidma_mgmt: Remove redundant 'child' assignment.

In hidma_mgmt_of_populate_channels(), 'new_pdev->dev.of_node = child;' is not needed as it has been correctly done in platform_device_register_full().

Fixes 9da0be80be6e ("dmaengine: qcom_hidma: configure DMA and MSI for OF")
---
 drivers/dma/qcom/hidma_mgmt.c | 1 -
 1 file changed, 1 deletion(-)
drivers/dma/qcom/hidma_mgmt.c +0 -1
index 62026607f3f8..4655b15f93ff 100644
@@ -387,7 +387,6 @@ static int __init hidma_mgmt_of_populate_channels(struct device_node *np)
 			ret = PTR_ERR(new_pdev);
 			goto out;
 		}
-		new_pdev->dev.of_node = child;
 		of_dma_configure(&new_pdev->dev, child, true);
 		/*
 		 * It is assumed that calling of_msi_configure is safe on
Signature · 7 lines
2.25.1


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel