Commit 9037908f authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Tejun Heo

sata_dwc_460ex: use np local variable in ->probe()

This patch fixes the style of usage of a node pointer. There is no functional
change.
Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
parent d7c256e8
...@@ -1691,7 +1691,7 @@ static int sata_dwc_probe(struct platform_device *ofdev) ...@@ -1691,7 +1691,7 @@ static int sata_dwc_probe(struct platform_device *ofdev)
host_pvt.dma_channel = dma_chan; host_pvt.dma_channel = dma_chan;
/* Ioremap SATA registers */ /* Ioremap SATA registers */
base = of_iomap(ofdev->dev.of_node, 0); base = of_iomap(np, 0);
if (!base) { if (!base) {
dev_err(&ofdev->dev, "ioremap failed for SATA register" dev_err(&ofdev->dev, "ioremap failed for SATA register"
" address\n"); " address\n");
...@@ -1727,7 +1727,7 @@ static int sata_dwc_probe(struct platform_device *ofdev) ...@@ -1727,7 +1727,7 @@ static int sata_dwc_probe(struct platform_device *ofdev)
idr, ver[0], ver[1], ver[2]); idr, ver[0], ver[1], ver[2]);
/* Get SATA DMA interrupt number */ /* Get SATA DMA interrupt number */
irq = irq_of_parse_and_map(ofdev->dev.of_node, 1); irq = irq_of_parse_and_map(np, 1);
if (irq == NO_IRQ) { if (irq == NO_IRQ) {
dev_err(&ofdev->dev, "no SATA DMA irq\n"); dev_err(&ofdev->dev, "no SATA DMA irq\n");
err = -ENODEV; err = -ENODEV;
...@@ -1735,7 +1735,7 @@ static int sata_dwc_probe(struct platform_device *ofdev) ...@@ -1735,7 +1735,7 @@ static int sata_dwc_probe(struct platform_device *ofdev)
} }
/* Get physical SATA DMA register base address */ /* Get physical SATA DMA register base address */
host_pvt.sata_dma_regs = (void *)of_iomap(ofdev->dev.of_node, 1); host_pvt.sata_dma_regs = (void *)of_iomap(np, 1);
if (!(host_pvt.sata_dma_regs)) { if (!(host_pvt.sata_dma_regs)) {
dev_err(&ofdev->dev, "ioremap failed for AHBDMA register" dev_err(&ofdev->dev, "ioremap failed for AHBDMA register"
" address\n"); " address\n");
...@@ -1755,7 +1755,7 @@ static int sata_dwc_probe(struct platform_device *ofdev) ...@@ -1755,7 +1755,7 @@ static int sata_dwc_probe(struct platform_device *ofdev)
sata_dwc_enable_interrupts(hsdev); sata_dwc_enable_interrupts(hsdev);
/* Get SATA interrupt number */ /* Get SATA interrupt number */
irq = irq_of_parse_and_map(ofdev->dev.of_node, 0); irq = irq_of_parse_and_map(np, 0);
if (irq == NO_IRQ) { if (irq == NO_IRQ) {
dev_err(&ofdev->dev, "no SATA DMA irq\n"); dev_err(&ofdev->dev, "no SATA DMA irq\n");
err = -ENODEV; err = -ENODEV;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment