Message ID | 1498053804-11297-1-git-send-email-fabio.estevam@nxp.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-input-owner@kernel.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id B93DE60234 for <patchwork-linux-input@patchwork.kernel.org>; Wed, 21 Jun 2017 14:03:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A92D9283FB for <patchwork-linux-input@patchwork.kernel.org>; Wed, 21 Jun 2017 14:03:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9D701285CC; Wed, 21 Jun 2017 14:03:59 +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=-6.9 required=2.0 tests=BAYES_00,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 0FB162844E for <patchwork-linux-input@patchwork.kernel.org>; Wed, 21 Jun 2017 14:03:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751041AbdFUOD6 (ORCPT <rfc822;patchwork-linux-input@patchwork.kernel.org>); Wed, 21 Jun 2017 10:03:58 -0400 Received: from mail-by2nam03on0056.outbound.protection.outlook.com ([104.47.42.56]:35331 "EHLO NAM03-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752006AbdFUODp (ORCPT <rfc822;linux-input@vger.kernel.org>); Wed, 21 Jun 2017 10:03:45 -0400 Received: from MWHPR03CA0059.namprd03.prod.outlook.com (10.174.173.176) by BY2PR0301MB2005.namprd03.prod.outlook.com (10.163.196.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1178.14; Wed, 21 Jun 2017 14:03:33 +0000 Received: from BN1BFFO11FD002.protection.gbl (2a01:111:f400:7c10::1:174) by MWHPR03CA0059.outlook.office365.com (2603:10b6:301:3b::48) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1178.14 via Frontend Transport; Wed, 21 Jun 2017 14:03:33 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; nxp.com; dkim=none (message not signed) header.d=none;nxp.com; dmarc=fail action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BN1BFFO11FD002.mail.protection.outlook.com (10.58.144.65) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1178.14 via Frontend Transport; Wed, 21 Jun 2017 14:03:32 +0000 Received: from r49496.am.freescale.net (r49496.am.freescale.net [10.29.244.200]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id v5LE3UFM006119; Wed, 21 Jun 2017 07:03:30 -0700 From: Fabio Estevam <fabio.estevam@nxp.com> To: <dmitry.torokhov@gmail.com> CC: <festevam@gmail.com>, <marex@denx.de>, <ksenija.stanojevic@gmail.com>, <linux-input@vger.kernel.org>, Fabio Estevam <fabio.estevam@nxp.com> Subject: [PATCH] input: touchscreen: mxs-lradc: Use devm_ioremap_resource() Date: Wed, 21 Jun 2017 11:03:24 -0300 Message-ID: <1498053804-11297-1-git-send-email-fabio.estevam@nxp.com> X-Mailer: git-send-email 2.7.4 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131425274129091185; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(336005)(39380400002)(39410400002)(39450400003)(39400400002)(39840400002)(39860400002)(39850400002)(2980300002)(1110001)(1109001)(339900001)(199003)(189002)(9170700003)(85426001)(105606002)(38730400002)(110136004)(4326008)(50986999)(106466001)(5003940100001)(53936002)(86362001)(6916009)(356003)(6666003)(50226002)(305945005)(8676002)(8936002)(81166006)(2351001)(39060400002)(104016004)(33646002)(36756003)(47776003)(2906002)(54906002)(8656002)(5660300001)(50466002)(498600001)(77096006)(48376002)(189998001); DIR:OUT; SFP:1101; SCL:1; SRVR:BY2PR0301MB2005; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; MLV:ovrnspm; A:1; MX:1; PTR:InfoDomainNonexistent; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN1BFFO11FD002; 1:RDVM8G/+kXdyLnZ0MyDpyfPUZ4IDqtA1sP8tb5eNt?= =?us-ascii?Q?39Ya8YoXXUQOgVs0wsgBouGfeikOjvr0FXUqO3CgQVzggipohuzNdRtrGJ2X?= =?us-ascii?Q?+/O7np0jE0ZnSdKWggkYt6rb3j9ebhdheoFT2X9jTFDk4sudeI8Luf3fmC5e?= =?us-ascii?Q?XcONMD/PdOPbQCSzYG1z1snkm62bYhBbwdpKlu95C2xfEh4vWpXXgaTpB0at?= =?us-ascii?Q?EPGmr2We3slqvz4kOBRu2RllX3Vw58MJKsN81HuBCsu55T069y8TOmBYiAED?= =?us-ascii?Q?ak9lmalCEfqdWwcpk94IfBmo3FHXZV1ymuGxS5QO3m0jLPwhLHghEBALKYv8?= =?us-ascii?Q?g8I3NX+fKyLLfNyAciOMGevcbgmMS4fD2rKDG7KV2M/hCPT4IUSFooMIjRz5?= =?us-ascii?Q?A1dRJfMQ33peIiDmQANPwrJKLpf2igIru/JMF78SAdLXGzzGPpNPQSOiQlb/?= =?us-ascii?Q?sfX1IMBTGX/OWBZ3qp8QMLymCav/7sFZL7vlSHO9oJsLVmrU24euuweJK9m+?= =?us-ascii?Q?yMKcW3DVrGu3B7Y7ngztZ+8dEx5JM/JeK9Zb6ibaCzkktVywySGgWqEDmdnG?= =?us-ascii?Q?/DVyafQPDtJsOKSFwax9zjV28rvZpbGuKNPHH7yWob99xcYJVUdZXqQkK97F?= =?us-ascii?Q?XQetfJUssT5ndsaWvo4DEHbcM1xn20WXSISCRJ/pbV6VpW8IW1X53axv2oTw?= =?us-ascii?Q?JpVniruigPKMpfeLnOedNQIcx/MQm8WCNhY0VyKTOjvDnuC9mZVyEVNCWyIt?= =?us-ascii?Q?4HWwFXI8u8rX8bLr+1oKtEJ633kpb2DqOWkDYROLrIEvEsyv5k/H54QmKUSO?= =?us-ascii?Q?06IQ/IodwVNJxe9xEr6xP7y8OQjaU1kfVUjkCnhEO9YaflMCYSnath4P0irZ?= =?us-ascii?Q?1xo/UuYgmKeZ+hIISQom4V+DFvH9w8vhEORbwnXwFToJ0BW2IkqOTY3HG+e5?= =?us-ascii?Q?jy17knsxmiaDnenLalXhW6zLQrI5Cv5LWXRmA+cgcnh9Oy2KUMDwKi7l+drF?= =?us-ascii?Q?Nuf7j6JW+uQqHX7iIVOTCXt/UMg0T8je/FVdw/5MjdB1+xN0NCIweesbjwMB?= =?us-ascii?Q?p3FJVc=3D?= MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 616833a0-ec89-4396-a910-08d4b8ae4d6d X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131430075)(201703131517081); SRVR:BY2PR0301MB2005; X-Microsoft-Exchange-Diagnostics: 1; BY2PR0301MB2005; 3:k0pcH/xBXTY99GAORuvKnxyAXTQPkywD1ktm97M60PAcLPRPYqesSsMDo27GxYxClNOSMPlHlocVw1R7KCKCfqHI3hcUAB541UO2hCfV/aIsMkGAcrwae2PDhdHHQZUz9SnDufMUlq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.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6095135)(601004)(2401047)(8121501046)(5005006)(13016025)(13018025)(3002001)(93006095)(93001095)(100000703101)(100105400095)(10201501046)(6055026)(6096035)(20161123565025)(20161123559100)(201703131430075)(201703131433075)(201703131448075)(201703161259150)(201703151042153)(20161123561025)(20161123563025)(20161123556025)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BY2PR0301MB2005; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BY2PR0301MB2005; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY2PR0301MB2005; 4:ow5AFtySY2o8P9ho5Oe4QsM/QcOKO3BQxIwBiaCw?= =?us-ascii?Q?PfbVPF43v4xEp7TWl4ddGyF48zC+sXUrx5vkfrv0xcmNLomjPdocrjEmacd+?= =?us-ascii?Q?gaMxMi2vifHlyFW1crWqfLlcDHiOPyxsFc0Lyjb1voFWPfZ11z8rVr7Qf4+7?= =?us-ascii?Q?OHK5ttYCFV1a8rI1jnj7Bt78nvCm1zg6OEwaWzgkVTJ51wFlpuNrMJvBKeUM?= =?us-ascii?Q?hWh8HbMpKbXeNnQ2+yYQw/0TETyft3sfVsFybNsrDKbFKrN3lonkQnhWYAqD?= =?us-ascii?Q?JyPQ7ep/PMQb8i9CVYYA3/JzKiQ4Ke07YOIwmG2wLVL/2dn89aM48+Y6U0xG?= =?us-ascii?Q?J9p1MtgRzyj2bo6+LJ5Dbd7Q9xtM+1GBrNPShfIoJlVHcGQsNtXZGhMJDr0f?= =?us-ascii?Q?Aprf+YQIqe331N7Ld+sgwlFt1DqywYoR/0fx8Vh0W0Px60qLyhCvlHotR8pV?= =?us-ascii?Q?b/YxFxw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0?= =?us-ascii?Q?NJeT/V+XTmM0XXaCQfW/H725rurDv55HT+/ptE4NXCK7KjY1iTaGdkoSoQV4?= =?us-ascii?Q?dztPJzzc2VzeDtivSGwaL7rb0OwxKbuh6UukxPc5tai7H/i52ImkyQgQfSHe?= =?us-ascii?Q?f7BjiJvjkxx1MJ3vLLGyCy6L6zPm+E9ujIn6GWkXUsOteGLYyHaFU1Nm+xRm?= =?us-ascii?Q?F3fTeGktbHWRm03ELudtcpHCZqGoS8BD0Jvl6OS6dfZXtLz5c9zPJMEhqQh0?= =?us-ascii?Q?ez7Esxs33zZhAQsdcinOou/DWpAzWr81eKH5jB2UL5JoAedvjcYbhilJdSsx?= =?us-ascii?Q?43Yo3VoqR526+j5j6BOjyNKmeR7vwbwK6TXZErEMRvEzAQUzEzQRpJfiDRA?= =?us-ascii?Q?=3D=3D?= X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY2PR0301MB2005; 6:waukybZfKLiMvzUIRWimVeJaUL0OXLavaSudDxun?= =?us-ascii?Q?sYvAryznGZAU0GrJ9bPT36W/QY9HC8j4yHxc5K3qfTPMh9i9fNvdiBSc/BfA?= =?us-ascii?Q?DhwQSdR8Kh3sdyZOJOssq9A75GBWsVow5VIu25HWCjFDrjs0IYQflj+e4EV9?= =?us-ascii?Q?za206gbncsxVBC5eIwDvZjfQECbBxKO5VJGVClfQGazSXdae4v6kIaDBigJt?= =?us-ascii?Q?5m7EIB6SiZNw8WCKw0GlXuRdbyv3djuFXjOQXsjR5RlYq7pty/6jS+eS5sRA?= =?us-ascii?Q?B2Ncnu+je3JLTapZKQLpO+3yyTfi8kefZx2qk8AJ0+ppTCtEkrX/9IVycP/T?= =?us-ascii?Q?TWcoXq8eFWlX66BmXKQwD0uHA5YllkBW36eVcw0GWZ7MjcJnJhl4hemXxfte?= =?us-ascii?Q?V5DlhAEU5ZHBsRHlT7dg7Z7p/QEZtiEvvD2tbvuRQO2VMBzDKjJxKWo7eDru?= =?us-ascii?Q?F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fJ+zO7wr4iK6RdxdmlaKIcbtqkMp317xYeK+hmxoDL0tP0cK/LDOp5x0RR1zcISupfxPtUtPClxJargs3jpINKrkIzOhDzQgMjXIodgtZs7Eiz15k3FKy0arrdT0vPYqssStfyfg==; 24:F0KdVvti24TDYLGap3/8szLk+ffWU8xdj/Qw4dmYLJViFUP2RJjHkJQqAXe8KaX16p+1cPUsunKEqujdC9VXJlt+E6AlEh38TfSvHm0nnqQ= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BY2PR0301MB2005; 7:ueKBw11G6H1YOwXbSduTHabF6uZVLP6qIazOOkByAYZU4C4qfFMq10tuEh10Hso1+DUn4x/vROjzGRkBsYT9gGaeVK7Qr+2mATNB9ukr0Cm5woZnTz8OZetDKUD8qT30h+lPeUH/Ba7mPBb5twxtgs9lMTlkAnuvEgTRRn56n9ZZqJvn2SfmbpQ0lF0GE/kgffJQfq/J4CBe/gyoNq9S0KJykROr7uH11/jFdgvxQnwFmTjdEaV4axQHaiO0+C51ITGHzgCm6b963TmjOiSBl2JP0cYBq0a9z9WWvD3USDZp3UDsWgyRI3IpFdSeouOCmQ206v9tPx4p4fm5Anwl1Jz0HWVjGrM0b1c2weH1PXl/htPrAxHXvMVk4nrfKXmP/J10LevHYXyFuHhj1CfBin24gMXTrB5wOmQQl39sEADL7p85PLfcsLaHCCNSXkgU2f4FLDs/s8MmYLN9OXYO3LlLeqz7vKg9bdHcb3+SMvK6PTbDqePxejM3JTxX5VUwIWINtdiTuZQUotHBs6eWDyC8r70Rb4KYHIsT3WoOQA+DT0Fh+g3oZdReR8xkeNBdwfs1EYLugG2e1fweqZFBidOQt4T3TVh31nGG48U1acRa/HqMixLIPnlFjDRF/M9XdgH+8qypJQ9MCHO1UNh38CC9vR11qpQO54ADOXFGoReCkN1YnQjWY5fZ1D/O+zW32+k3I6LyqRevHbgpN3oFZZORRHsiUcz24qQp/hNs6aJDz2MpgbV9U+2m8BNOTrZlgbFICgktSyAIxJYE4fQlTlN4kg6wJ4L7uKziNFy88Ic= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Jun 2017 14:03:32.7219 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR0301MB2005 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: <linux-input.vger.kernel.org> X-Mailing-List: linux-input@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
On Wed, Jun 21, 2017 at 11:03 AM, Fabio Estevam <fabio.estevam@nxp.com> wrote: > In case of error devm_ioremap() returns NULL pointer not ERR_PTR(). > > The iores NULL check is also missing. > > Fix both problems by using devm_ioremap_resource() variant instead. > > Fixes: d81ca730e3e4 ("input: touchscreen: mxs-lradc: Add support for touchscreen") > Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com> > --- > drivers/input/touchscreen/mxs-lradc-ts.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/input/touchscreen/mxs-lradc-ts.c b/drivers/input/touchscreen/mxs-lradc-ts.c > index 58c016c..0f8c9e7 100644 > --- a/drivers/input/touchscreen/mxs-lradc-ts.c > +++ b/drivers/input/touchscreen/mxs-lradc-ts.c > @@ -630,7 +630,7 @@ static int mxs_lradc_ts_probe(struct platform_device *pdev) > spin_lock_init(&ts->lock); > > iores = platform_get_resource(pdev, IORESOURCE_MEM, 0); > - ts->base = devm_ioremap(dev, iores->start, resource_size(iores)); > + ts->base = devm_ioremap_resource(dev, iores); > if (IS_ERR(ts->base)) > return PTR_ERR(ts->base); It seems we cannot use devm_ioremap_resource() in this case as it shares the resources with the lradc driver: http://www.spinics.net/lists/linux-iio/msg32864.html I will send a v2 that does a NULL check on iores. -- To unsubscribe from this list: send the line "unsubscribe linux-input" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/drivers/input/touchscreen/mxs-lradc-ts.c b/drivers/input/touchscreen/mxs-lradc-ts.c index 58c016c..0f8c9e7 100644 --- a/drivers/input/touchscreen/mxs-lradc-ts.c +++ b/drivers/input/touchscreen/mxs-lradc-ts.c @@ -630,7 +630,7 @@ static int mxs_lradc_ts_probe(struct platform_device *pdev) spin_lock_init(&ts->lock); iores = platform_get_resource(pdev, IORESOURCE_MEM, 0); - ts->base = devm_ioremap(dev, iores->start, resource_size(iores)); + ts->base = devm_ioremap_resource(dev, iores); if (IS_ERR(ts->base)) return PTR_ERR(ts->base);
In case of error devm_ioremap() returns NULL pointer not ERR_PTR(). The iores NULL check is also missing. Fix both problems by using devm_ioremap_resource() variant instead. Fixes: d81ca730e3e4 ("input: touchscreen: mxs-lradc: Add support for touchscreen") Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com> --- drivers/input/touchscreen/mxs-lradc-ts.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)