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. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Tejun Heo <tj@kernel.org>
This commit is contained in:
parent
f1601113dd
commit
47e46613d8
|
@ -248,6 +248,7 @@ static int sata_dwc_dma_init_old(struct platform_device *pdev,
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
|
|
||||||
hsdev->dma->dev = &pdev->dev;
|
hsdev->dma->dev = &pdev->dev;
|
||||||
|
hsdev->dma->id = pdev->id;
|
||||||
|
|
||||||
/* Get SATA DMA interrupt number */
|
/* Get SATA DMA interrupt number */
|
||||||
hsdev->dma->irq = irq_of_parse_and_map(np, 1);
|
hsdev->dma->irq = irq_of_parse_and_map(np, 1);
|
||||||
|
|
Loading…
Reference in New Issue