Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp2298431rdb; Mon, 5 Feb 2024 02:02:41 -0800 (PST) X-Google-Smtp-Source: AGHT+IEOUS7072xz8r32q0UGzeB7R6dyX33KBbN4e0PheZEqhOmt8vtOX/3TIyxsBHlJqQXo7qKV X-Received: by 2002:a05:6871:b1f:b0:219:5401:7721 with SMTP id fq31-20020a0568710b1f00b0021954017721mr6346912oab.39.1707127360784; Mon, 05 Feb 2024 02:02:40 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707127360; cv=pass; d=google.com; s=arc-20160816; b=ciHZHOTDGQQX052j+oFuzOIdXk5G9hkEGNe0i0bLEMAjaN0Nnf+jk6Soh2zYFmo8Zn WnLhqK+d+QTYBqXuLVQFs2aQxi6ppoS0oL+/w5lFeNshdlm2vZlJ3UqBl497qxIJRjxA 0crtRu1uX/2uXUy8ZmSTb58wRN9i6RpvmmtQg0WN83Q7VEgqPsA0VPlSUkpPPByPcXbW GHAVfBQ2YJZ3mUqRhiPG5Y5DaBhamUQZ+R4mTwAg5J4oYbxq2fsuccI+2Num2bwwchAM o+qhD/Zp7Mn3W5MOFAuzvW2nRLmneefOKeyizUxO6ytg/1TzD09Ibvc7fOzvi/uvy0Oe KzaA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=ui-outboundreport:content-transfer-encoding:subject:from:cc :content-language:to:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=vs6HMRrvRupVHZC0q2rvhzhCS5Vc+HGE4rHGqlmCnMY=; fh=tamD+nGNgjx64PAk88sWpcAb4K5KgzwXbMlcgBLMgK8=; b=DhzAYkau0ChhSjFNxFiuI6MQ8aYwSMNzxGVeB09DgntGNboxn+GtMngJLv4+8VUK2g 0OP/nE/On/mPonhjCIx/Lj4rfOLRei28CACpetK9Yp3slcuOPmVHd3j6HwSFKsbJ55Fc NI4s7FqOxMuY3ZjlfDw7jLOK2tXDMpmubvDRl8bBvvoth3H5KKXVLJDydAO3RlF0E7MC ZbTHHuOFUIx57izkqej2PTaTXnvZaGITTpWHNzotVni6yXCEGspEO5k5z/uxtEF9q5tn qOkPuUDjqfhSj0/rsTx/EI0He1JoqIvvWqxMLTtxo0frT88M+fAa9hNvoxhJLQNARIhF h+pg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@web.de header.s=s29768273 header.b=svc3ZXBj; arc=pass (i=1 spf=pass spfdomain=web.de dkim=pass dkdomain=web.de dmarc=pass fromdomain=web.de); spf=pass (google.com: domain of linux-kernel+bounces-52368-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-52368-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=web.de X-Forwarded-Encrypted: i=1; AJvYcCUBgzTRvILVaLHt1Po6WbFNF+4A5yg6oHM+fDmLVYKRsA7cYUH5dgTKLl1BcWRNNGJq/2UUZBTWHx3apenLuglO5EAa1hdu9DpxOAhXGw== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id t21-20020a05622a01d500b0042c0b96a355si5977852qtw.275.2024.02.05.02.02.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Feb 2024 02:02:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-52368-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@web.de header.s=s29768273 header.b=svc3ZXBj; arc=pass (i=1 spf=pass spfdomain=web.de dkim=pass dkdomain=web.de dmarc=pass fromdomain=web.de); spf=pass (google.com: domain of linux-kernel+bounces-52368-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-52368-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=web.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 153E21C24866 for ; Mon, 5 Feb 2024 10:01:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 13BE814000; Mon, 5 Feb 2024 10:01:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=web.de header.i=markus.elfring@web.de header.b="svc3ZXBj" Received: from mout.web.de (mout.web.de [212.227.17.12]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BB91C134BE; Mon, 5 Feb 2024 10:01:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=212.227.17.12 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707127281; cv=none; b=YlvS+8bh21EOB6nhvtKWVRy/D6mkl/WAZu2bicqphQ/9bBwnmYUoHQiZ+wLfFP314K94VhR7f1zhWprmCdQ/+lAs9QzPLrWOcIfnLLyKRBu9DUqbZh5S7hf/++ulG/Or8hKJKvon8Os/fFg4ap0DpZSMKPY/+7nfOjad/B4GBhk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707127281; c=relaxed/simple; bh=BP4cik0zUpqBQFebRvL7UNNHdC8t3H6I8IFcOmMDkhY=; h=Message-ID:Date:MIME-Version:To:Cc:From:Subject:Content-Type; b=qL/REL4T8cf9jxiaDRGvCuSEvVUNV4lxd/xfotKmlFvwHh0i/7pfB3IyzDUhN66U53oVxxsKNot4UbuaO7dNy27DsIuseYcP5FHo7pzOT5saLBy7i+gePCAjWUxd51rJF5sUnvc0n1JJM3heFw0c5Mki8HIsGzM+tE/UE+U5acM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=web.de; spf=pass smtp.mailfrom=web.de; dkim=pass (2048-bit key) header.d=web.de header.i=markus.elfring@web.de header.b=svc3ZXBj; arc=none smtp.client-ip=212.227.17.12 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=web.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=web.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=s29768273; t=1707127262; x=1707732062; i=markus.elfring@web.de; bh=BP4cik0zUpqBQFebRvL7UNNHdC8t3H6I8IFcOmMDkhY=; h=X-UI-Sender-Class:Date:To:Cc:From:Subject; b=svc3ZXBjNL90pRbqGudZ5sLzXrkZVAJdqdLBHVoanakv4xWbtWBVh1YgLxA9wwQg pNanxujD3FadEe3LD3TBlZ+L++t3miTPa6BPsicradl6DVL5rD5GyXS9lKcQi2+pw VqjU1cFKDTqRSZrJ98gvv1oH7P+Wi1fwehXitFxVI7sq5y5TSe4OTuS8YStHZPX7k BQiibfFJ8qlxe7dpyywgsFACf9suZzXTnUtlUWGbWs51hplEaU87EQ9fipjWLe1bU iBdwerYdz6DixiLjzGnanvWcgrdhx3Ruj8kmyTdpENaTlOb2qul6zzyXOEgJRdOFx V992XHYUL7qV+hB6EA== X-UI-Sender-Class: 814a7b36-bfc1-4dae-8640-3722d8ec6cd6 Received: from [192.168.178.21] ([94.31.85.95]) by smtp.web.de (mrweb106 [213.165.67.124]) with ESMTPSA (Nemesis) id 1M3m5B-1rXkzt2Jmd-0010fC; Mon, 05 Feb 2024 11:01:02 +0100 Message-ID: Date: Mon, 5 Feb 2024 11:01:01 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird To: linux-tegra@vger.kernel.org, dri-devel@lists.freedesktop.org, kernel-janitors@vger.kernel.org, Daniel Vetter , David Airlie , Jonathan Hunter , Mikko Perttunen , Thierry Reding Content-Language: en-GB Cc: LKML From: Markus Elfring Subject: [PATCH] drm/tegra: dsi: Use devm_platform_get_and_ioremap_resource() in tegra_dsi_probe() Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:l3QYLItjc1kOM4lo7et/2ok0Re/VhuUd9eWBSSYWeFHhcO8vu59 zQKhAzcdcqnTWza4xbwztbf0ruOhhqIPbBk8Afas26E+jRmNIqrc1Xp3Vzqk0ZNftgRrYmO /AGZkneQ3k7rA/A8J6voFd38wfVaT+UV4R3Whis4b4lUueunTorgmnJ01RMwZAOh9eEsrI2 QTwLNVCpVtLAxRxf8hhXw== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:W8KQR2hEAzU=;E1Kg3ilBm7X/538T0AtTOeBfTKJ GVHgoCgABVGMtfnWDgXJZ0BPU93O9QxCrbl5+jWv5HcYcsT6pHHbr4+mu4HZ6EO6f3Y5TxjBs FKz3/mAslNMHthAADDTodH0KdZh16nNlhuJKju61hh33VTnH6KBtjXoh2AqcBbgW8Qvhd9HhG sozsLljBleUrJ5rVIakcFjhXxPOxgCUwGn+SK50uUVWPE6UzJ4FRbSV/aYJCh5MElC/0U/RZE S1TZVT6hNo0AnUone/SrA/k+3OHeABFpBDvgY8M/NlDT1zrOqTa62+8pSe02nMLi4hjq5O0N8 8ID5PWcstHpHjW14N3HHyTzlf+4RmDeMfuzDBcIWtKUIKc1RzJXeah6t5siF/4DmRr+wXdxoi wozxGUtZ2WYlAypoQxaYGFM6Msl+IYBBXVPUmZ2STDqSntUMkj4ndf5SEECur6tfUrA89qpnt duaHh5FSieU96kgc5UwE5zi7DLfWu5X82L25ZK2pACnfGuHyiiYxO6vb8Rf3hnQusRcKLOZgR X85sEns/RkS/MtXgs6ph3H2P9MhIX0RaSzTMIjeG+QibqcYR8FXa9fh90nPpBMn2G2n2G0DBl WEeQbGmbWwRDQSapBaduCypNeILeW7SDYd4OM3P0X/z6m5OdOoBvjfqoNdaOK2UkcQI8fF/MF 3ZoMqca2vO5gPFxgo48Q2bWcIMb++dMcElrYCmPZCyhinxrYPesZpi5+cwCbeMQd5FctSlHbg m55wStkfh7R4ehjz//4iS6eM3IbklS5h/LDcQHXnD5oOeO9e5g/m1pt/0hbxsfnBZGmYhGc1Y d1OyebEFaVUoyGX4Qezuu8MSpkeGQJXDT/aFn2uTLjJbQ= From: Markus Elfring Date: Mon, 5 Feb 2024 10:51:36 +0100 A wrapper function is available since the commit 890cc39a879906b63912482df= c41944579df2dc6 ("drivers: provide devm_platform_get_and_ioremap_resource()"). Thus reuse existing functionality instead of keeping duplicate source code= . This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring =2D-- drivers/gpu/drm/tegra/dsi.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/tegra/dsi.c b/drivers/gpu/drm/tegra/dsi.c index fbfe92a816d4..727c3a7d8d26 100644 =2D-- a/drivers/gpu/drm/tegra/dsi.c +++ b/drivers/gpu/drm/tegra/dsi.c @@ -1624,8 +1624,7 @@ static int tegra_dsi_probe(struct platform_device *p= dev) return err; } - regs =3D platform_get_resource(pdev, IORESOURCE_MEM, 0); - dsi->regs =3D devm_ioremap_resource(&pdev->dev, regs); + dsi->regs =3D devm_platform_get_and_ioremap_resource(pdev, 0, ®s); if (IS_ERR(dsi->regs)) return PTR_ERR(dsi->regs); =2D- 2.43.0