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: 10885131 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 2B2D5139A for ; Thu, 4 Apr 2019 07:18:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0EDF328915 for ; Thu, 4 Apr 2019 07:18:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0374928995; Thu, 4 Apr 2019 07:18:55 +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=-7.7 required=2.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AC38028915 for ; Thu, 4 Apr 2019 07:18:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727314AbfDDHSy (ORCPT ); Thu, 4 Apr 2019 03:18:54 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:36358 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726058AbfDDHSx (ORCPT ); Thu, 4 Apr 2019 03:18:53 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 8F4416141D; Thu, 4 Apr 2019 07:18:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1554362332; bh=D5UNxLrC1aCufR9HttQTKtuFo+WmQLBmfJpT125xMxk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YdraUt92/1YeXHXM+OBMKB8BzIDlH5uTWLSw8oD5g5BrW3R/WnQmXfDEPBEFVOhTi Hsk2ONS5UpZcbN+6GHvbrnL0PdSGXCDjwrzr0gPGAtmjlTWRuGSOfb0nUTrQqVCcSP A38+tSEvKnqgoh3opde2HDePEn4zJEr92331dk8E= 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 Cc: Mukesh Ojha 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> Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.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);