From patchwork Thu Apr 4 07:20:07 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mukesh Ojha X-Patchwork-Id: 10885145 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 6F2071669 for ; Thu, 4 Apr 2019 07:21:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4B116289EF for ; Thu, 4 Apr 2019 07:21:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3AF51289EC; Thu, 4 Apr 2019 07:21:39 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id D6EEB289EC for ; Thu, 4 Apr 2019 07:21:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=rM3OK3l9/txh+UP5jrDR3fbqVf9AZ5Xwjm/67768WJg=; b=nNcULGzK/6brqNd9HqG4E1SoLY XKIxqKHXfebHEODUShOAvLpwSpFSwzVS4JmI+g31+lx+71056YkvVapx/Ux5ZpiMFIlAh45f3UAI4 raGGE/lzOHsh6Sh34hO7j11gtdU87f277BtAEtHKu4KobES+N/PgyPNMEoSCwKTrI+j5T8l2QHKrI zhDL6gUDWCIjEtvjAedLQ0JIOZkRPBYwCKGMsGL+USc14PQ0RFicCuUi03TeZvCNtDyH/iOhOiO4h 1cU2DrglxVU89aD85lDx1NeQnTFV7wYRUlG8fOUBlxYWt3CQf+BnKtoWvXEPxNQA9jNwnNGlFZmMC FzfzRmxg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hBwgr-00075w-FG; Thu, 04 Apr 2019 07:21:37 +0000 Received: from smtp.codeaurora.org ([198.145.29.96]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hBwgn-00075H-BL for linux-arm-kernel@lists.infradead.org; Thu, 04 Apr 2019 07:21:34 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id E36F360DAB; Thu, 4 Apr 2019 07:21:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1554362493; bh=UIXGct7UhilAA9koClaqe1gnwMuvS8qfjhZwExnNyxg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YRFzw0oaK1YEAC8Iqh0uDk3N6ShyfSR20GjJpMHhXcaCMoPBUV4ckTVsY3eV8FIfJ gVe66X6AJlzEJmpUPsLP0hzVo7WyQ3RbhElVTUj/x884TeoLO3wDjtFLZfbS7iEsUM ZHwDGIVjmMU5bYbXbdJY4imdupd/f3ul0201HRB0= Received: from mojha-linux.qualcomm.com (blr-c-bdr-fw-01_globalnat_allzones-outside.qualcomm.com [103.229.19.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: mojha@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id D932D60A44; Thu, 4 Apr 2019 07:21:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1554362489; bh=UIXGct7UhilAA9koClaqe1gnwMuvS8qfjhZwExnNyxg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dIIjxdI7heT4WF+PabZbmcbZQUgjLPzBz2Y+MIOL57VjDpN2KDMn/S37bL2QZpGqH V5INSugJ9Xo4/FwhZCHzvKtZJBmtyrs+Qc4YNTmh2w9jPaK5KSHJRfjKlwqjnsIDT6 EYR4r5tjqATKMH2AHULybq5FRtniInGp6XwZbxdg= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org D932D60A44 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=mojha@codeaurora.org From: Mukesh Ojha To: tglx@linutronix.de, jason@lakedaemon.net, marc.zyngier@arm.com, yamada.masahiro@socionext.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/7] irqchip/irq-uniphier-aidet: Use devm_platform_ioremap_resource() Date: Thu, 4 Apr 2019 12:50:07 +0530 Message-Id: <1554362413-3305-2-git-send-email-mojha@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1554362413-3305-1-git-send-email-mojha@codeaurora.org> References: <1554362413-3305-1-git-send-email-mojha@codeaurora.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190404_002133_401881_83281348 X-CRM114-Status: GOOD ( 11.07 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mukesh Ojha MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP devm_platform_ioremap_resource() internally have platform_get_resource() and devm_ioremap_resource() in it. So instead of calling them separately use devm_platform_ioremap_resource() directly. Signed-off-by: Mukesh Ojha --- drivers/irqchip/irq-uniphier-aidet.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/irqchip/irq-uniphier-aidet.c b/drivers/irqchip/irq-uniphier-aidet.c index 7ba7f25..1a77268 100644 --- a/drivers/irqchip/irq-uniphier-aidet.c +++ b/drivers/irqchip/irq-uniphier-aidet.c @@ -174,7 +174,6 @@ static int uniphier_aidet_probe(struct platform_device *pdev) struct device_node *parent_np; struct irq_domain *parent_domain; struct uniphier_aidet_priv *priv; - struct resource *res; parent_np = of_irq_find_parent(dev->of_node); if (!parent_np) @@ -189,8 +188,7 @@ static int uniphier_aidet_probe(struct platform_device *pdev) if (!priv) return -ENOMEM; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - priv->reg_base = devm_ioremap_resource(dev, res); + priv->reg_base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(priv->reg_base)) return PTR_ERR(priv->reg_base); From patchwork Thu Apr 4 07:20:08 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mukesh Ojha X-Patchwork-Id: 10885147 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 0BE531669 for ; Thu, 4 Apr 2019 07:21:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D8175289EC for ; Thu, 4 Apr 2019 07:21:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CBE46289F3; Thu, 4 Apr 2019 07:21:48 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 7DE36289EC for ; Thu, 4 Apr 2019 07:21:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=xz9VwVVjgtX5V1+7FXY/awqi+z/uqq2HWxjpEQpKGak=; b=W0Yvu5e10NWEbrhUkFbmYRbXx7 ob27Y2BdsAl9Llu7MJTbCEDj1KIRLdjZd2vFB7g4Ey23Dcf2NHHw+NLepvxMU9/Op8ekTjuxz4LWb TNiRo1RUzDu2GTCUfZdJC4fd8Y4tk8uTbU0pnTGY4TBut0Oph3Zkp4+cMhc47K3Rhkw5pyNMVM+aj LHVdnTt6z8z7na6oLH1GS01VECK1sj+j+iF5AGPRM8i3+qYZ4obBZxMVssHv1O18RI0exm9KUtnO5 u4siF48E+7jIb6siEp1ipNIsp73lyxxDe8jj2rWKUz8eo6ygJPsRb28257BKJx/8IS6YozHuQ5KQ4 sKzNx7hg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hBwgz-0007G1-L4; Thu, 04 Apr 2019 07:21:45 +0000 Received: from smtp.codeaurora.org ([198.145.29.96]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hBwgq-00075g-Hq for linux-arm-kernel@lists.infradead.org; Thu, 04 Apr 2019 07:21:38 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id EFDD960A44; Thu, 4 Apr 2019 07:21:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1554362496; bh=4QvGmrEcKu6EC3BFBWtNaJqazwAXXDWhFvvO0ubMrK8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=B+qakBnkmjiW8RccHgJD4tlzERY8wWOZjF7uSoY8liqSEvVeqMR051yPmrmMChFfl 86lgwPeVsWMW9KfHa5Iy1H5nzmwtgjnfmhWkjssB2L8bSig35SDoCGGlrp7RUT/At/ eU66IfrHcae48L53WxKXhP/WYHJIclV55qaQBH6o= Received: from mojha-linux.qualcomm.com (blr-c-bdr-fw-01_globalnat_allzones-outside.qualcomm.com [103.229.19.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: mojha@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 3DFA360A44; Thu, 4 Apr 2019 07:21:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1554362493; bh=4QvGmrEcKu6EC3BFBWtNaJqazwAXXDWhFvvO0ubMrK8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KG1sW36e/+IW6AcPN2XOItJEKUEStObyUdUFnC4CH7MP/W+okuXO/ZqWF02/g21Cd Sre6wp6wo5wcw/FAFXao1F+84ZQKrBoK6YzyMyy1/g7jYKHN/QwSI6lOGz9TIv0EHc Rrdovc6fnir7IxAq3CqCZASl0VVU5SBepdj+KlbM= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 3DFA360A44 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=mojha@codeaurora.org From: Mukesh Ojha To: tglx@linutronix.de, jason@lakedaemon.net, marc.zyngier@arm.com, yamada.masahiro@socionext.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/7] irqchip/irq-imgpdc.c: Use devm_platform_ioremap_resource() Date: Thu, 4 Apr 2019 12:50:08 +0530 Message-Id: <1554362413-3305-3-git-send-email-mojha@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1554362413-3305-1-git-send-email-mojha@codeaurora.org> References: <1554362413-3305-1-git-send-email-mojha@codeaurora.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190404_002136_607358_EB9DCBD4 X-CRM114-Status: GOOD ( 12.25 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mukesh Ojha MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP devm_platform_ioremap_resource() internally have platform_get_resource() and devm_ioremap_resource() in it. So instead of calling them separately use devm_platform_ioremap_resource() directly. Signed-off-by: Mukesh Ojha --- drivers/irqchip/irq-imgpdc.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/drivers/irqchip/irq-imgpdc.c b/drivers/irqchip/irq-imgpdc.c index d00489a..8904a5f 100644 --- a/drivers/irqchip/irq-imgpdc.c +++ b/drivers/irqchip/irq-imgpdc.c @@ -307,13 +307,6 @@ static int pdc_intc_probe(struct platform_device *pdev) if (!node) return -ENOENT; - /* Get registers */ - res_regs = platform_get_resource(pdev, IORESOURCE_MEM, 0); - if (res_regs == NULL) { - dev_err(&pdev->dev, "cannot find registers resource\n"); - return -ENOENT; - } - /* Allocate driver data */ priv = devm_kzalloc(&pdev->dev, sizeof(*priv), GFP_KERNEL); if (!priv) { @@ -324,8 +317,7 @@ static int pdc_intc_probe(struct platform_device *pdev) platform_set_drvdata(pdev, priv); /* Ioremap the registers */ - priv->pdc_base = devm_ioremap(&pdev->dev, res_regs->start, - resource_size(res_regs)); + priv->pdc_base = devm_platform_ioremap_resource(pdev, 0); if (!priv->pdc_base) return -EIO; From patchwork Thu Apr 4 07:20:09 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mukesh Ojha X-Patchwork-Id: 10885149 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id D8E1813B5 for ; Thu, 4 Apr 2019 07:22:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B6A8A289EC for ; Thu, 4 Apr 2019 07:22:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A902E289F3; Thu, 4 Apr 2019 07:22:02 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 51496289EC for ; Thu, 4 Apr 2019 07:22:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=6qp5vJZ4yyTxGgM9+db4WWdSdrEam6YUgXmqIk6oGOs=; b=IIs8Y7h3Sh9K+nUhJ7FpHJkRLW L+wemWOOTnNsLOK811eqB1Ri1hEmBryK4Ck73v+Lmncw4zZDatKrGBfoAyUNK6TIZdFjUG8O7wOzt xERzEqBFQhI+khZSxIinnqEDR0vTBEZUGxKoywSFV8jyFc/MsH1xz9Iy1W8VCEa9b/gFsT/R/5Hhc +xycZUBTumfqUNoNXH/P8M85YG7pWUrFjgqm9m1Ao1y29995Ofdve2uNmhue+MOBuTNYYYHpvqKer /hK+hbxl8zJu5PjxOefnvo9MuR79DbsdruTKjlimkImFX0/sRNk05WuJBouUTW9dZWwXEA7sK40li SwQiCuFQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hBwhD-0007ZO-68; Thu, 04 Apr 2019 07:21:59 +0000 Received: from smtp.codeaurora.org ([198.145.29.96]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hBwgu-0007AI-Dg for linux-arm-kernel@lists.infradead.org; Thu, 04 Apr 2019 07:21:45 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 69F1B61AAE; Thu, 4 Apr 2019 07:21:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1554362499; bh=UwZDme7oLJ4lQ0xS/HZjRyKSI9Hl05BPZanKyxCd0+4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QpT2PWUTTHDDROMBFH3FsrbZvlkEaC2WZwIVEO/+p5j5JTsVKKABM83mHjc+lFB6P vopUNJJVx+UChD/Ql4IBGZmsZ6UqtCXKilw5qRL74lVwZ0PSXIky7yHngFouoYQKcM X/v2736d+McQ7fTEihrCVmePVkmpIToK2JjPRLMY= Received: from mojha-linux.qualcomm.com (blr-c-bdr-fw-01_globalnat_allzones-outside.qualcomm.com [103.229.19.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: mojha@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 4F41061573; Thu, 4 Apr 2019 07:21:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1554362497; bh=UwZDme7oLJ4lQ0xS/HZjRyKSI9Hl05BPZanKyxCd0+4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VaXKwEGjqjegWv/GYZedJdHb6nXV5RwP8azpL6atj32TWzgaMnE+DlgOPrNkXnbJ4 Q62VqE20Hw06Bk57bzHG3dy/H5WXl2Ds9p2ar7bmmYg0T9cboTTOKBK3M6JhHKEzPI 0dWpBYSFjD1d2OKKXnwm0i0363LthvcTvNCvG0IQ= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 4F41061573 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=mojha@codeaurora.org From: Mukesh Ojha To: tglx@linutronix.de, jason@lakedaemon.net, marc.zyngier@arm.com, yamada.masahiro@socionext.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/7] irqchip/irq-ts4800.c: Use devm_platform_ioremap_resource() Date: Thu, 4 Apr 2019 12:50:09 +0530 Message-Id: <1554362413-3305-4-git-send-email-mojha@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1554362413-3305-1-git-send-email-mojha@codeaurora.org> References: <1554362413-3305-1-git-send-email-mojha@codeaurora.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190404_002140_933623_58F21D7D X-CRM114-Status: GOOD ( 11.10 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mukesh Ojha MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP devm_platform_ioremap_resource() internally have platform_get_resource() and devm_ioremap_resource() in it. So instead of calling them separately use devm_platform_ioremap_resource() directly. Signed-off-by: Mukesh Ojha --- drivers/irqchip/irq-ts4800.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/irqchip/irq-ts4800.c b/drivers/irqchip/irq-ts4800.c index 2325fb3..589a8a1 100644 --- a/drivers/irqchip/irq-ts4800.c +++ b/drivers/irqchip/irq-ts4800.c @@ -94,15 +94,13 @@ static int ts4800_ic_probe(struct platform_device *pdev) struct device_node *node = pdev->dev.of_node; struct ts4800_irq_data *data; struct irq_chip *irq_chip; - struct resource *res; int parent_irq; data = devm_kzalloc(&pdev->dev, sizeof(*data), GFP_KERNEL); if (!data) return -ENOMEM; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - data->base = devm_ioremap_resource(&pdev->dev, res); + data->base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(data->base)) return PTR_ERR(data->base); From patchwork Thu Apr 4 07:20:10 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mukesh Ojha X-Patchwork-Id: 10885151 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id CAA2F1669 for ; Thu, 4 Apr 2019 07:22:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A7C46289EC for ; Thu, 4 Apr 2019 07:22:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 994E8289F3; Thu, 4 Apr 2019 07:22:19 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 3BB8C289EC for ; Thu, 4 Apr 2019 07:22:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=UqZY6O718ob8zAmy5X5tQAjpnRViBxy1WQk3v0eA8Mw=; b=CWa9pHipaz/yjTOrrXdWk3SxRg YD/IXeTzoMRkUw8fJUEpVDvntN4FMCNgf6+ge+AkIaTeMXdkdOUTJLCiFJHnRIPIjYi5XsN12wIF/ lnPi9/BR6angYOtPKkmcrUCG2dkw8P0DH2eGYtBER1MYY//3luLkBDDlZffbtgs1ypxJ4Ji0S9UEC xg80qHrKC9Pty7BuvJM1gVrn5NIsJVmZkZBfPDtJQjKuNR04LPfuCg+pIzlvm056wRp9HqToaIiHA 1QMI28SZKPbXrRsHRqllqGcvVtI2HXqDm9kJC9nVKacugHbloLXMF3Z8NUqiCWO98s6pKbw3zaX/s jJWCtchA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hBwhP-0007s2-LE; Thu, 04 Apr 2019 07:22:11 +0000 Received: from smtp.codeaurora.org ([198.145.29.96]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hBwhB-0007YT-3X for linux-arm-kernel@lists.infradead.org; Thu, 04 Apr 2019 07:22:09 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id C06AA61846; Thu, 4 Apr 2019 07:21:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1554362516; bh=pz1ferueIQeBlV6rjfmFLqrgocDEOxnV90Rf3nxErqE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ilNTrkE0woksoHT3XGYh9hYIVqgvKmWa2TTl40hHNmhOuJhFgBpfCh3+pUk8m+4JM zBxOuZA7XCXw5bqQWlxmBwROtw5bP7Orr6MLT/6dA48mWPIhj1QH+cME5juaTyb5GD GBk+kqnX1Dsv9iXfWw0rCBZekaAqwM1Ay3zl0l8U= Received: from mojha-linux.qualcomm.com (blr-c-bdr-fw-01_globalnat_allzones-outside.qualcomm.com [103.229.19.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: mojha@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 3430461AB2; Thu, 4 Apr 2019 07:21:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1554362501; bh=pz1ferueIQeBlV6rjfmFLqrgocDEOxnV90Rf3nxErqE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hTWPe9t5C9EIoMvZELWQvttZlLWlZWRKVnsdXGbTOJM1azNVIhno9xHDJ6Pe20o9Y JdmxwV+PM6ZDoTcA58lmOy8vYgk4/UZIwUfm1wtututN+C5vJTCh/pCFj8jaPvNG2z gnIr39qcbxJNu8LGILIlgCf2a4ix1mItLiU3ImHM= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 3430461AB2 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=mojha@codeaurora.org From: Mukesh Ojha To: tglx@linutronix.de, jason@lakedaemon.net, marc.zyngier@arm.com, yamada.masahiro@socionext.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 4/7] irqchip/irq-mbigen.c: Use devm_platform_ioremap_resource() Date: Thu, 4 Apr 2019 12:50:10 +0530 Message-Id: <1554362413-3305-5-git-send-email-mojha@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1554362413-3305-1-git-send-email-mojha@codeaurora.org> References: <1554362413-3305-1-git-send-email-mojha@codeaurora.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190404_002157_630755_5B52E0DC X-CRM114-Status: GOOD ( 12.26 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mukesh Ojha MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP devm_platform_ioremap_resource() internally have platform_get_resource() and devm_ioremap_resource() in it. So instead of calling them separately use devm_platform_ioremap_resource() directly. Signed-off-by: Mukesh Ojha --- drivers/irqchip/irq-ls-scfg-msi.c | 4 +--- drivers/irqchip/irq-mbigen.c | 9 +-------- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/drivers/irqchip/irq-ls-scfg-msi.c b/drivers/irqchip/irq-ls-scfg-msi.c index c671b32..aec5a2f 100644 --- a/drivers/irqchip/irq-ls-scfg-msi.c +++ b/drivers/irqchip/irq-ls-scfg-msi.c @@ -336,7 +336,6 @@ static int ls_scfg_msi_probe(struct platform_device *pdev) { const struct of_device_id *match; struct ls_scfg_msi *msi_data; - struct resource *res; int i, ret; match = of_match_device(ls_scfg_msi_id, &pdev->dev); @@ -349,8 +348,7 @@ static int ls_scfg_msi_probe(struct platform_device *pdev) msi_data->cfg = (struct ls_scfg_msi_cfg *) match->data; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - msi_data->regs = devm_ioremap_resource(&pdev->dev, res); + msi_data->regs = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(msi_data->regs)) { dev_err(&pdev->dev, "failed to initialize 'regs'\n"); return PTR_ERR(msi_data->regs); diff --git a/drivers/irqchip/irq-mbigen.c b/drivers/irqchip/irq-mbigen.c index 98b6e1d..c9aedfb 100644 --- a/drivers/irqchip/irq-mbigen.c +++ b/drivers/irqchip/irq-mbigen.c @@ -327,7 +327,6 @@ static inline int mbigen_acpi_create_domain(struct platform_device *pdev, static int mbigen_device_probe(struct platform_device *pdev) { struct mbigen_device *mgn_chip; - struct resource *res; int err; mgn_chip = devm_kzalloc(&pdev->dev, sizeof(*mgn_chip), GFP_KERNEL); @@ -335,13 +334,7 @@ static int mbigen_device_probe(struct platform_device *pdev) return -ENOMEM; mgn_chip->pdev = pdev; - - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - if (!res) - return -EINVAL; - - mgn_chip->base = devm_ioremap(&pdev->dev, res->start, - resource_size(res)); + mgn_chip->base = devm_platform_ioremap_resource(pdev, 0); if (!mgn_chip->base) { dev_err(&pdev->dev, "failed to ioremap %pR\n", res); return -ENOMEM; From patchwork Thu Apr 4 07:20:11 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mukesh Ojha X-Patchwork-Id: 10885153 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 3382B1669 for ; Thu, 4 Apr 2019 07:22:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0F6CC289EC for ; Thu, 4 Apr 2019 07:22:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 03F93289F3; Thu, 4 Apr 2019 07:22:36 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id AAAA5289EC for ; Thu, 4 Apr 2019 07:22:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=OFXp9UmNhqrNVugWFA+Xfy8qMDO6Bf0BdB53IlCh/Q8=; b=jPYsCoCDs4NfdX5y2AnYV6Xvu5 1VkQod9X4pNvGt5gKbkuYlwhenhpoRJ1dFtGtkPEPiFL/6jk0U22Ql49pQForOYtQitwUTeYw2CEo zwXuZSZXb8wj9kFoa+3CN4xeecR7G3r/ftzC42f6zyi32EUbqhBxaJJTB6m3EAIPdxTLw1oSB8R7U lpjWBd5bLIcZAkc73Ckzr6o9UpQRoIZzIZY1fN6Q0XLfOorZibQ6d0+C6nNtr30aqfdYDyPscgKvA fQu+v3PblFeIqlIniLxW1Txj8gvhSLrbABUsSxYA53IkeF9Gvi9pm0dE5qSU858pPzrZk1mQFzrGm JDi9Fb8g==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hBwhg-0008Ah-9g; Thu, 04 Apr 2019 07:22:28 +0000 Received: from smtp.codeaurora.org ([198.145.29.96]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hBwhI-0007i6-8y for linux-arm-kernel@lists.infradead.org; Thu, 04 Apr 2019 07:22:19 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id C0D4B61B03; Thu, 4 Apr 2019 07:21:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1554362523; bh=mUIF1VfmqkVChPdPc9kiEQsdJjyhQ7P1qReEmHMotks=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=inmMk4OMytWGHDYx+gFS3w7NwBsBfb7g3dius378ctBWGQCPf2bH1Fr4KGdO2lyEE 8AnIyhbg7OY+thrZ7dgtC4c+EeuEW15+GJWU0PchzUfc+i+Xy8hfGalHaoiL85onbC KBtZ80kNOn0RoACglT/QlHdS2se7fUnIwVBiBoX0= Received: from mojha-linux.qualcomm.com (blr-c-bdr-fw-01_globalnat_allzones-outside.qualcomm.com [103.229.19.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: mojha@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 2BD2A61AFB; Thu, 4 Apr 2019 07:21:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1554362505; bh=mUIF1VfmqkVChPdPc9kiEQsdJjyhQ7P1qReEmHMotks=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SPlwaUORNvklBHCvj5mcCHS9Xt1ZYDMt5J+7ut0j9thbsykjbQLcx2/HuXlQcnu+1 8kj66o4E0/tY3z6P80uucUJuo5OE662lBfpKB5nCqS0pW2NwAkO8/KBv/nOuzWutUj yOlNBYdnFj0oQirhZys59oQZk9dZO/uqK+S+0584= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 2BD2A61AFB Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=mojha@codeaurora.org From: Mukesh Ojha To: tglx@linutronix.de, jason@lakedaemon.net, marc.zyngier@arm.com, yamada.masahiro@socionext.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 5/7] irqchip/irq-mvebu-icu: Use devm_platform_ioremap_resource() Date: Thu, 4 Apr 2019 12:50:11 +0530 Message-Id: <1554362413-3305-6-git-send-email-mojha@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1554362413-3305-1-git-send-email-mojha@codeaurora.org> References: <1554362413-3305-1-git-send-email-mojha@codeaurora.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190404_002204_598358_944B9EBE X-CRM114-Status: GOOD ( 11.32 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mukesh Ojha MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP devm_platform_ioremap_resource() internally have platform_get_resource() and devm_ioremap_resource() in it. So instead of calling them separately use devm_platform_ioremap_resource() directly. Signed-off-by: Mukesh Ojha --- drivers/irqchip/irq-mvebu-icu.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/irqchip/irq-mvebu-icu.c b/drivers/irqchip/irq-mvebu-icu.c index 547045d..a54e4cd 100644 --- a/drivers/irqchip/irq-mvebu-icu.c +++ b/drivers/irqchip/irq-mvebu-icu.c @@ -347,7 +347,6 @@ static int mvebu_icu_subset_probe(struct platform_device *pdev) static int mvebu_icu_probe(struct platform_device *pdev) { struct mvebu_icu *icu; - struct resource *res; int i; icu = devm_kzalloc(&pdev->dev, sizeof(struct mvebu_icu), @@ -357,8 +356,7 @@ static int mvebu_icu_probe(struct platform_device *pdev) icu->dev = &pdev->dev; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - icu->base = devm_ioremap_resource(&pdev->dev, res); + icu->base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(icu->base)) { dev_err(&pdev->dev, "Failed to map icu base address.\n"); return PTR_ERR(icu->base); From patchwork Thu Apr 4 07:20:12 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mukesh Ojha X-Patchwork-Id: 10885173 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 003E41708 for ; Thu, 4 Apr 2019 07:37:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D1FAC28868 for ; Thu, 4 Apr 2019 07:37:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C3514289F8; Thu, 4 Apr 2019 07:37:43 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 789AA28868 for ; Thu, 4 Apr 2019 07:37:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=JWKihIKV4KLJFT7TWYr3t0Dyl9lg/pit5JHJ0aXUq1g=; b=ooqQyk2dk/bQiHJ7eYUN67OS/+ x0aYxbHv7LakwSggA0Rp0jsQ0s7PqGxcvRQOdrUmPsq7YRjlnzMujKtB7XMRvJrWxXwt1vaU4syfD VoExx2wGe+ahwW7Iq/cotLIosOry7oMKr91P/2iUFmGYTjS1J4oPo4TkRaANoXg/aKD82rvTiYCde gGOBSdQHTBkmfDBdfC15BVlMAAMnBzqXJEL2ou6Q2OOR4QItEmTChcUdbrPZ7DXl7r5VTx/5xgdZI Pv0X6LsjX2q3LKG0rf9gg1PF8QdjzfMs5Craamffusdybbo+fWdAzlUBuABSEUhE710wOYgNlJW3u FDMIWbIg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hBwwM-0006fr-SP; Thu, 04 Apr 2019 07:37:38 +0000 Received: from smtp.codeaurora.org ([198.145.29.96]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hBwhN-0007pL-7h for linux-arm-kernel@lists.infradead.org; Thu, 04 Apr 2019 07:22:26 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id D497D61B13; Thu, 4 Apr 2019 07:21:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1554362528; bh=jXeJfK8T3G1dyUObfVmDCBse7KFqyMZPb9m9hJMUNUk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HT4Hp4SwXl/tPnMEhZcds4p/jLx1R2bu/gcljLScvfhWFFqJgXoNMJ+M+4Zodv252 Ve/BVRj7vC37yx5aTsuqL7giVW1YY00Q9kiscp5Ek7t7WHUIsXjtlB2uF9/jWONKC9 7IUnEh4sLBaSdk7jYM00Jxx4tfLUVw/DU+Xb6iJM= Received: from mojha-linux.qualcomm.com (blr-c-bdr-fw-01_globalnat_allzones-outside.qualcomm.com [103.229.19.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: mojha@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 17CDE61AE8; Thu, 4 Apr 2019 07:21:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1554362509; bh=jXeJfK8T3G1dyUObfVmDCBse7KFqyMZPb9m9hJMUNUk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cJl6dD64ghwfMgWaEGUwl5+j8zAC4WfQfgUM6DM0PysdRIrrvqE7AMDTBUr0OsGQ0 WxlTeZ5RpfXB8Jj4w4IGRuFAWRgYdVYW4p52gCeoK4e4T4nJyr7Rd42PAZ5+S4ZtH2 Bs15NdSvusGAW9vV/f5fW967vMxnm7knpYNJSvfs= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 17CDE61AE8 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=mojha@codeaurora.org From: Mukesh Ojha To: tglx@linutronix.de, jason@lakedaemon.net, marc.zyngier@arm.com, yamada.masahiro@socionext.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 6/7] irqchip/irq-mvebu-pic: Use devm_platform_ioremap_resource() Date: Thu, 4 Apr 2019 12:50:12 +0530 Message-Id: <1554362413-3305-7-git-send-email-mojha@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1554362413-3305-1-git-send-email-mojha@codeaurora.org> References: <1554362413-3305-1-git-send-email-mojha@codeaurora.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190404_002209_468816_3154519B X-CRM114-Status: GOOD ( 10.97 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mukesh Ojha MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP devm_platform_ioremap_resource() internally have platform_get_resource() and devm_ioremap_resource() in it. So instead of calling them separately use devm_platform_ioremap_resource() directly. Signed-off-by: Mukesh Ojha --- drivers/irqchip/irq-mvebu-pic.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/irqchip/irq-mvebu-pic.c b/drivers/irqchip/irq-mvebu-pic.c index eec6395..d6ade62 100644 --- a/drivers/irqchip/irq-mvebu-pic.c +++ b/drivers/irqchip/irq-mvebu-pic.c @@ -124,14 +124,12 @@ static int mvebu_pic_probe(struct platform_device *pdev) struct device_node *node = pdev->dev.of_node; struct mvebu_pic *pic; struct irq_chip *irq_chip; - struct resource *res; pic = devm_kzalloc(&pdev->dev, sizeof(struct mvebu_pic), GFP_KERNEL); if (!pic) return -ENOMEM; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - pic->base = devm_ioremap_resource(&pdev->dev, res); + pic->base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(pic->base)) return PTR_ERR(pic->base); From patchwork Thu Apr 4 07:20:13 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mukesh Ojha X-Patchwork-Id: 10885155 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2CE9D13B5 for ; Thu, 4 Apr 2019 07:22:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 07DAF289EF for ; Thu, 4 Apr 2019 07:22:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id ECAC5289F7; Thu, 4 Apr 2019 07:22:46 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id A41A9289EF for ; Thu, 4 Apr 2019 07:22:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=2fHjV1s0YpsqWN4cCxNEEdjtMIOHegL3sH6EPGXV+yA=; b=RMRnbUOWqvT5Mnst/x/Yq/xRSz 08+TmqeclSHitA+Ot5qz6emTUoV65g7POCRODXwZ+1x2yvvA46CxD9hTj5gYqQLD9OQU2n0Zbr39w FDvRsjy+0YDK7nLak7DrU0iQyFgUAgZPjqtvV0q3St1B3qpXz2YAdQoRX757tHj5zT42/D3AKfXhr Cmo5+WGdMMl9TEaD4N+GTr3DuP6giWtGU69tZb5M0m8/M+A48V5+gGlyDdNL1eZN/bg30XjbPY9iI FqcU4Dxjpih0i5IlfOmxryOjrS97ktnEK0WYLX5eGT80iR/ExgQl5c1jAxD49cEkYYkVr/L6u+bh5 J5dtJHpA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hBwhq-0008Nz-Ka; Thu, 04 Apr 2019 07:22:38 +0000 Received: from smtp.codeaurora.org ([198.145.29.96]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hBwhK-0007li-MJ for linux-arm-kernel@lists.infradead.org; Thu, 04 Apr 2019 07:22:22 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 68D2F61B20; Thu, 4 Apr 2019 07:21:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1554362526; bh=tXR+MvEu/epB8pzLiVTl+75mh5aE4R49HkHZYkjYpIY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Vvu2Osqrxp9UZQe8pGL3bdbgXaIreYaGsgrV8LjjGmm39p2kbcbLCKyGnQdTaDSiF t4/TlOfVDiIV5kvOrB+YrdLrg1/LpQsbNv6rwh9ReQJ8zsu5eWvZET9rjyWppaJx50 L25nxS4D3WitgDfSWw16Ql/XL9z7yRKnMS3hSyY8= Received: from mojha-linux.qualcomm.com (blr-c-bdr-fw-01_globalnat_allzones-outside.qualcomm.com [103.229.19.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: mojha@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id DC9F461AFF; Thu, 4 Apr 2019 07:21:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1554362513; bh=tXR+MvEu/epB8pzLiVTl+75mh5aE4R49HkHZYkjYpIY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=EqHekJIDOEqaPIiPijqyc5978vKb5TTwVV8VDh0lu5qGXr+0YGF6rAttTQih+A6cY zO8WWzYmbPFuRU4WVe1xxvqzGIyt/uZKH6bT45nSjRyxKhnMA4R34MfF1ojwDv7OC7 /RM4jR7Fp2onPZCjzdFlOJJ8pcyh6EtVuItkEiIA= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org DC9F461AFF Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=mojha@codeaurora.org From: Mukesh Ojha To: tglx@linutronix.de, jason@lakedaemon.net, marc.zyngier@arm.com, yamada.masahiro@socionext.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 7/7] irqchip/irq-mvebu-sei: Use devm_platform_ioremap_resource() Date: Thu, 4 Apr 2019 12:50:13 +0530 Message-Id: <1554362413-3305-8-git-send-email-mojha@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1554362413-3305-1-git-send-email-mojha@codeaurora.org> References: <1554362413-3305-1-git-send-email-mojha@codeaurora.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190404_002207_265112_B4F8F67C X-CRM114-Status: GOOD ( 12.37 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mukesh Ojha MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP devm_platform_ioremap_resource() internally have platform_get_resource() and devm_ioremap_resource() in it. So instead of calling them separately use devm_platform_ioremap_resource() directly. Signed-off-by: Mukesh Ojha --- drivers/irqchip/irq-mvebu-sei.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/irqchip/irq-mvebu-sei.c b/drivers/irqchip/irq-mvebu-sei.c index 18832cc..0a09dcc 100644 --- a/drivers/irqchip/irq-mvebu-sei.c +++ b/drivers/irqchip/irq-mvebu-sei.c @@ -382,8 +382,7 @@ static int mvebu_sei_probe(struct platform_device *pdev) mutex_init(&sei->cp_msi_lock); raw_spin_lock_init(&sei->mask_lock); - sei->res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - sei->base = devm_ioremap_resource(sei->dev, sei->res); + sei->base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(sei->base)) { dev_err(sei->dev, "Failed to remap SEI resource\n"); return PTR_ERR(sei->base);