From patchwork Thu Apr 4 07:17:19 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mukesh Ojha X-Patchwork-Id: 10885089 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 D09C2139A for ; Thu, 4 Apr 2019 07:18:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AFE1A28901 for ; Thu, 4 Apr 2019 07:18:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A39B328992; Thu, 4 Apr 2019 07:18:13 +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 5889A28901 for ; Thu, 4 Apr 2019 07:18:13 +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=Bag543MnwJ3qCxHvW/T7rZMWjJon5DevIfhCjEomD4o=; b=nXzQPWAUMJijnwifR3UJ4RzY6r b01hvBnYyZOJWmjGu4ObGpSkR7YKSaUQhleQjnQ4X425ZOFUC2cRESStzef1C8QGyfUysB8E1WZcp i5kMKrv0v7fOXvDqMeZHLtDIK6eNqorIdr4Id2YHTWkjCaWqJyRs+VaWLNbXTiDjEsJGIXjgDVknx H0uzN9I3a74uLz/JSn/psUcS2LHuhZYC6j+kdPqyhNBv2FnJIaT6l8LNs0xKbvX7RuGVYtGMJ3/ZH bjddm8cMiFL5S3obo5hoxplGqc81jony0uY415b4sBMC769zkEbALcEB37Rr3/1yBRF95gczvUgmc djgQbtZA==; 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 1hBwdX-0003cO-Pw; Thu, 04 Apr 2019 07:18:11 +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 1hBwdU-0003c4-Du for linux-arm-kernel@lists.infradead.org; Thu, 04 Apr 2019 07:18:09 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 223CE6079C; Thu, 4 Apr 2019 07:18:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1554362288; bh=yKYPUn62ma6HL1VuWEXd+QduzyTtxeLAKCHyWFpD/sI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=R1OnHkkY8zj492O2wFrer1Hywwu480F3whnVCHYnKYCeqzRTINzJqDGracAWw71gf PLZoVr1TsAfAULz3D/2PbYQTxISFO/5ep0Yxygp1opuYW4P0JLDazm4c/QafjF92p5 7jDxu9R9QiTh+1SG/JVVo2mTI8K62cKe+Iqs4iLo= 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 E7C16607C6; Thu, 4 Apr 2019 07:18:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1554362286; bh=yKYPUn62ma6HL1VuWEXd+QduzyTtxeLAKCHyWFpD/sI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OMeCFYInUzGbbeVJGd8qsoaXvk2Cb/F7+h8arhWjy4CfzaJDVJB4Xu12zKCwH85um e8Ap9DoaLrYJbYOJFevqUfEx9Ff3sXJIIGGCYtVtjEI8EsxxiPPZl0/34UV6OC8oFV 6GM6BRn7MGR7ZeGW1x/waTvqEsPVxXty3Rm2peAk= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org E7C16607C6 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 1/5] Input: fsl-imx25-tcq: Use devm_platform_ioremap_resource() Date: Thu, 4 Apr 2019 12:47:19 +0530 Message-Id: <1554362243-2888-2-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_001808_483890_A79F621E X-CRM114-Status: GOOD ( 11.00 ) 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/fsl-imx25-tcq.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/input/touchscreen/fsl-imx25-tcq.c b/drivers/input/touchscreen/fsl-imx25-tcq.c index 1d6c8f4..b66df8a 100644 --- a/drivers/input/touchscreen/fsl-imx25-tcq.c +++ b/drivers/input/touchscreen/fsl-imx25-tcq.c @@ -503,7 +503,6 @@ static int mx25_tcq_probe(struct platform_device *pdev) struct input_dev *idev; struct mx25_tcq_priv *priv; struct mx25_tsadc *tsadc = dev_get_drvdata(dev->parent); - struct resource *res; void __iomem *mem; int error; @@ -512,8 +511,7 @@ static int mx25_tcq_probe(struct platform_device *pdev) return -ENOMEM; priv->dev = dev; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - mem = devm_ioremap_resource(dev, res); + mem = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(mem)) return PTR_ERR(mem);