From patchwork Thu Apr 4 07:17:23 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mukesh Ojha X-Patchwork-Id: 10885127 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 576FD17EE for ; Thu, 4 Apr 2019 07:18:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3299228915 for ; Thu, 4 Apr 2019 07:18:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 26E4228995; Thu, 4 Apr 2019 07:18:53 +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 C8B6328915 for ; Thu, 4 Apr 2019 07:18:52 +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=zQt00VNV189yZ+24HFfewiTdbPUOzDU4qzI/JFj8YPI=; b=d1SWcNt6RQiOMzJ0VaCEV+n3f1 K0h7HT0uCgsaXSiLChcCvTynbmRYvqHNZNNZ458CJRyzheJjdEcBexBxUd+IeCr9Gn3AYhS5fSGLE HMD0hY6bX2MqMQNDtuNvsq96IefZo1c9+kIwa6jh/TQmAMzqgNGyUlYSmmbmBKh+JjD3BvTJaN78e 76/2LUsvqTxsOAeKj6G025Pg3+YbgVRUVkf10nf+mogP5BpaZZQkLeAXfcJ+43GqvZdTMG66Qub6j 31/o3osrGU9OgnqReHf6g/NvzC0uLOlcc3PK87q22Ya0cTNQQhepvAFJTV99Z5yOBZlkfTJFO57NP NjzJ/gJw==; 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 1hBwe9-0004IW-Mr; Thu, 04 Apr 2019 07:18:49 +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 1hBwdz-000495-SC for linux-arm-kernel@lists.infradead.org; Thu, 04 Apr 2019 07:18:41 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 8A87F61790; 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=1554362319; bh=nTZbq6hRF5rjKUh0yPSlnzIEiAgFxyO93W+oBUyfSLQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=O8/GGKcNuGT1W8Shb9XCuL2thljzyB+JIleq3BS5/WoQJjLxnxK/D8iiSuUxjMRHB VVUgGVcFLhyALSFUNEfojdbdaJN3SHIF7bmp645eseIGyuhEjUZQ3ml+rzi96xbpBI YvBOxvNgJ6Pawo+IDx9h3tkvDPZeq98LPWDn48sg= 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 AADE36172D; 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=1554362306; bh=nTZbq6hRF5rjKUh0yPSlnzIEiAgFxyO93W+oBUyfSLQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GIRg5BTFsvAQ1/5eEFTqPmAF4HpFw61di2kzOl5Qt8zSgxKZGrreGC66G88wl3Zp0 M8c0zrN1DlwXZ0/2/LHGDX+v0A97ABuI/505KqJfpt5rzE02sch/nz+4Rs/gvK49dw +VMIYD6buOhBwVc04WgmujszKTnZhbr2gP2JuTWY= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org AADE36172D 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 5/5] Input: ts4800-ts: Use devm_platform_ioremap_resource() Date: Thu, 4 Apr 2019 12:47:23 +0530 Message-Id: <1554362243-2888-6-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_001839_937602_73E2F663 X-CRM114-Status: GOOD ( 11.16 ) 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/ts4800-ts.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/input/touchscreen/ts4800-ts.c b/drivers/input/touchscreen/ts4800-ts.c index fed73ee..5b4f536 100644 --- a/drivers/input/touchscreen/ts4800-ts.c +++ b/drivers/input/touchscreen/ts4800-ts.c @@ -148,7 +148,6 @@ static int ts4800_ts_probe(struct platform_device *pdev) { struct input_polled_dev *poll_dev; struct ts4800_ts *ts; - struct resource *res; int error; ts = devm_kzalloc(&pdev->dev, sizeof(*ts), GFP_KERNEL); @@ -159,8 +158,7 @@ static int ts4800_ts_probe(struct platform_device *pdev) if (error) return error; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - ts->base = devm_ioremap_resource(&pdev->dev, res); + ts->base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(ts->base)) return PTR_ERR(ts->base);