Skip to contentSkip to conversation

ata: sata_dwc_460ex: Propagate platform device ID to DMA driver

PATCH Applied Andy Shevchenko 2 participants 2 messages Nov 10, 2017 – Nov 13, 2017 libata

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ata: sata_dwc_460ex: Propagate platform device ID to DMA driver

Propagate platform device ID to DMA driver to distinguish relationship between DMA and SATA instances.

---
 drivers/ata/sata_dwc_460ex.c | 1 +
 1 file changed, 1 insertion(+)
drivers/ata/sata_dwc_460ex.c +1 -0
index ce128d5a6ded..6af4ec3c88c3 100644
@@ -248,6 +248,7 @@ static int sata_dwc_dma_init_old(struct platform_device *pdev,
 		return -ENOMEM;
 
 	hsdev->dma->dev = &pdev->dev;
+	hsdev->dma->id = pdev->id;
 
 	/* Get SATA DMA interrupt number */
 	hsdev->dma->irq = irq_of_parse_and_map(np, 1);
Signature · 1 line
2.14.2
Applied
#1 lore raw
Quoted 4 lines · Andy Shevchenko

Propagate platform device ID to DMA driver to distinguish relationship between DMA and SATA instances.

Applied to libata/for-4.15.

Thanks.

Signature · 1 line
tejun