From patchwork Thu Apr 4 07:17:22 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mukesh Ojha X-Patchwork-Id: 10885115 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 040F6139A for ; Thu, 4 Apr 2019 07:18:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D761928915 for ; Thu, 4 Apr 2019 07:18:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CC13C289B4; Thu, 4 Apr 2019 07:18:42 +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 864DD28915 for ; Thu, 4 Apr 2019 07:18:42 +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=sIJIYEn8kLXROYDP0iWLqullaeriQXfaT/uWHWYYNig=; b=CqLJURb0NIRkjUUkZIjf4FqGyk gqtpcp9kq149BSGxIv5Ri5oxZ7otS0rpKYLRV/HaZzpMWS+q5IZyjtTvcaS5rkyt6JsUVjoPWcIf8 HBmWKTq1U3aDWS9OQgaMueBwq1ScWvYBwTZ+ClVgivYGavrq5fkJAEKsI9xUllZ65KSe9AO8XOTxa NtYza5JR2O+GgmW0/yxzU8ceqx3/GZAhgHnPY7bUTXfv9FZ4IUzOZUmAMV076OwPOi7LUhE+I8hV+ /SoVECHFlbcOuyyURPDpoKGQOzJ8FiJxze69w75QTdxTS8MLtl6fsYMd8MDeyrxOv/9MD3qUYVXUM pCBz2neg==; 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 1hBwe1-00049N-2A; Thu, 04 Apr 2019 07:18:41 +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 1hBwdx-00048P-QA for linux-arm-kernel@lists.infradead.org; Thu, 04 Apr 2019 07:18:39 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 7CD28614B5; Thu, 4 Apr 2019 07:18:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1554362317; bh=D5UNxLrC1aCufR9HttQTKtuFo+WmQLBmfJpT125xMxk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gHOlK7MTv5Aw1lZdT/WQpq/UlVzOGERh0LZ75aDRXw2chi7din0Etv/jbZijxO8+z VD97oHM8IbEw4uoED1UXBjze+aefobycS68x9xp1bsItuEiYAOQHYQ+Uc7hV+DeU5X ggMKu4/AcmaSJiO9adGWBtd/Y7SI2qvr7mSifY9Q= 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 3617C616B8; Thu, 4 Apr 2019 07:18:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1554362302; bh=D5UNxLrC1aCufR9HttQTKtuFo+WmQLBmfJpT125xMxk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bxKun/JT3U2V9LFA8vFST5kQ5QDXT+ebToF4p9ZzM3QJBa9tP3Zy2m+cW9EwjbISB OaD/vLZPi6Puk5JHAxskPjj6rKt5RoYlkTWx94BUE4kk4UzH8CYeMzC1cIg91/c7VU QPXnjQQZLOeRMp1RxM0Vv1u5VIWrwvV43gBu4Jmc= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 3617C616B8 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: dmitry.torokhov@gmail.com, shawnguo@kernel.org, s.hauer@pengutronix.de, linux-imx@nxp.com, linux-input@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 4/5] Input: sun4i-ts: Use devm_platform_ioremap_resource() Date: Thu, 4 Apr 2019 12:47:22 +0530 Message-Id: <1554362243-2888-5-git-send-email-mojha@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1554362243-2888-1-git-send-email-mojha@codeaurora.org> References: <1554362243-2888-1-git-send-email-mojha@codeaurora.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190404_001837_884840_8C9BB26E X-CRM114-Status: GOOD ( 12.33 ) 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/input/touchscreen/sun4i-ts.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/input/touchscreen/sun4i-ts.c b/drivers/input/touchscreen/sun4i-ts.c index d2e14d9..bbb0104 100644 --- a/drivers/input/touchscreen/sun4i-ts.c +++ b/drivers/input/touchscreen/sun4i-ts.c @@ -309,8 +309,7 @@ static int sun4i_ts_probe(struct platform_device *pdev) input_set_drvdata(ts->input, ts); } - ts->base = devm_ioremap_resource(dev, - platform_get_resource(pdev, IORESOURCE_MEM, 0)); + ts->base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(ts->base)) return PTR_ERR(ts->base);