ata: sata_dwc_460ex: Propagate platform device ID to DMA driver
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 10 Nov 2017 17:59:37 +0000 (19:59 +0200)
committerTejun Heo <tj@kernel.org>
Mon, 13 Nov 2017 20:17:11 +0000 (12:17 -0800)
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>
drivers/ata/sata_dwc_460ex.c

index ce128d5a6ded21b7603d737be439fa89e9050d56..6af4ec3c88c3f5592d5958692a0a7260e0ad91f0 100644 (file)
@@ -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);