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