[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <f558075203281d9ee38595f1a1f3874da74d9a1c.1451221174.git.geliangtang@163.com>
Date: Sun, 27 Dec 2015 21:15:41 +0800
From: Geliang Tang <geliangtang@....com>
To: Dan Williams <dan.j.williams@...el.com>,
Vinod Koul <vinod.koul@...el.com>,
Jarkko Nikula <jarkko.nikula@...ux.intel.com>
Cc: Geliang Tang <geliangtang@....com>, dmaengine@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: [PATCH 03/10] dmaengine: ppc4xx: use to_platform_device()
Use to_platform_device() instead of open-coding it.
Signed-off-by: Geliang Tang <geliangtang@....com>
---
drivers/dma/ppc4xx/adma.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/dma/ppc4xx/adma.c b/drivers/dma/ppc4xx/adma.c
index 9217f89..039803a 100644
--- a/drivers/dma/ppc4xx/adma.c
+++ b/drivers/dma/ppc4xx/adma.c
@@ -3887,7 +3887,7 @@ static int ppc440spe_adma_setup_irqs(struct ppc440spe_adma_device *adev,
struct device_node *np;
int ret;
- ofdev = container_of(adev->dev, struct platform_device, dev);
+ ofdev = to_platform_device(adev->dev);
np = ofdev->dev.of_node;
if (adev->id != PPC440SPE_XOR_ID) {
adev->err_irq = irq_of_parse_and_map(np, 1);
--
2.5.0
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists