Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754604AbbL0NRt (ORCPT ); Sun, 27 Dec 2015 08:17:49 -0500 Received: from m50-134.163.com ([123.125.50.134]:46337 "EHLO m50-134.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752547AbbL0NRl (ORCPT ); Sun, 27 Dec 2015 08:17:41 -0500 From: Geliang Tang To: Dan Williams , Vinod Koul , Jarkko Nikula Cc: Geliang Tang , dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 03/10] dmaengine: ppc4xx: use to_platform_device() Date: Sun, 27 Dec 2015 21:15:41 +0800 Message-Id: X-Mailer: git-send-email 2.5.0 In-Reply-To: References: In-Reply-To: References: X-CM-TRANSID: DtGowEB5UUSh5H9WAWmOAA--.12110S3 X-Coremail-Antispam: 1Uf129KBjvdXoW7Gw1xAF48GFWfGFWxXw4DCFg_yoW3XrgE9w 18Z3yvgr1kAFW8trW5Gr4fZr95t3W0gFs5urnFgr93Was8WrZxZryDXF1kJw4xWw47CFyq kr9rWr4fGrsrKjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7IU1oKZJUUUUU== X-Originating-IP: [116.77.145.148] X-CM-SenderInfo: 5jhoxtpqjwt0rj6rljoofrz/1tbiNQPdmVSILDy3hgAAsP Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 959 Lines: 29 Use to_platform_device() instead of open-coding it. Signed-off-by: Geliang Tang --- 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/