From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752520AbcAFJTK (ORCPT ); Wed, 6 Jan 2016 04:19:10 -0500 Received: from mga01.intel.com ([192.55.52.88]:58341 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752031AbcAFJTF (ORCPT ); Wed, 6 Jan 2016 04:19:05 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,528,1444719600"; d="scan'208";a="854487667" Date: Wed, 6 Jan 2016 14:52:23 +0530 From: Vinod Koul To: Geliang Tang Cc: Dan Williams , Jarkko Nikula , dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 03/10] dmaengine: ppc4xx: use to_platform_device() Message-ID: <20160106092223.GS2940@localhost> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Dec 27, 2015 at 09:15:41PM +0800, Geliang Tang wrote: > Use to_platform_device() instead of open-coding it. > Are these patches thru subystems trees or something else. Also either no cover-letter or not enough ppl cc'ed on that! > 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 > > -- ~Vinod