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);