Message ID | 20230710032355.72914-1-frank.li@vivo.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp4752175vqx; Sun, 9 Jul 2023 20:33:41 -0700 (PDT) X-Google-Smtp-Source: APBJJlEsQHPwDd1Xix8LPFLR3j/2xx/4oJeKaCCkJ+c+fVttJyoUllnhNw6M7IThQgflHzt2DXDy X-Received: by 2002:a25:ab73:0:b0:c6e:5cd1:b224 with SMTP id u106-20020a25ab73000000b00c6e5cd1b224mr8002530ybi.14.1688960021095; Sun, 09 Jul 2023 20:33:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688960021; cv=pass; d=google.com; s=arc-20160816; b=gRB+k+dpn2OgRlBRkch++P/Ke0nEGtNxe0Iu0rUQzSUeJuOVHH5N+Qpt+bLLpNf1Ff YLI20K4ubmn8y9GZGJZwf23QhA9nMqVibWZ1i+KW+PP2PpEEqlnDYNdKp7+BamQirCtW TzGyvnH0pZK9egUWNGAOeMYbAA1F9DpVE7hS1ZdhI7+/GsL7E1TG+H45ZXTWakgXUyrN 5vF10Z5g3SzGbS0Noj06zhXxbkOhUb8g6/onawXtUEAoCBNw2W/aGo0NlOVfQyeUjVL5 yyoAH6Qdckc5tN5/vaxqjinTHkpES/IOympL7QmYBc1QjmEnKxYTDYNC94fBUDiuf8Ux pKug== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :message-id:date:subject:cc:to:from:dkim-signature; bh=+ubNA55ot4g9uV8DnDaa0Wk8oto8gA0f3+jKufnOzYg=; fh=xz/DfXU3T+GPy/wXigluXdTbjElXsoFgcEbqPVABYTk=; b=JpJDKqhjfBXvOk/FHZ/iavHJ1ISqlkNBuGZ+emkAQLlbx5X3d/Xyu7BY3oRU2jZDfo /cIDdoVGTNqqJbwTFNgKOWfalnvgmlXaaDPxjMOKyKxJ8ZEGJYUyUYCs8vO+CkRRZ0q3 n4p8t/2VhI6JKmBlaDw+rYYJcXKSt9Wh8C7nQyjNgu9Bbor5L973uRZ/IX6GwHCAg9jn z7KRlv96e5PyG9B5+EMKwhkuZp7pAIv+po8AsahL+Yb5ysWfahoKsvFk0BYzIyd8Tj6x JSrNdo5OVnQCKMf9NP4MW4zFKAYr9NbelDl428uGlAGYHxxTfxRWKwFcMGC/bvgViC/r Ga/g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=i12DTCZt; arc=pass (i=1 spf=pass spfdomain=vivo.com dkim=pass dkdomain=vivo.com dmarc=pass fromdomain=vivo.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=vivo.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f10-20020a170902ce8a00b001b8971cb96asi8760517plg.601.2023.07.09.20.33.28; Sun, 09 Jul 2023 20:33:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=i12DTCZt; arc=pass (i=1 spf=pass spfdomain=vivo.com dkim=pass dkdomain=vivo.com dmarc=pass fromdomain=vivo.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=vivo.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229990AbjGJDY0 (ORCPT <rfc822;ybw1215001957@gmail.com> + 99 others); Sun, 9 Jul 2023 23:24:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56762 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229921AbjGJDYV (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sun, 9 Jul 2023 23:24:21 -0400 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2130.outbound.protection.outlook.com [40.107.255.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B4C9F100; Sun, 9 Jul 2023 20:24:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UDH4EPMUcp8HWhe8SszUgpQwifY/ps4X3oj7yVPclLMRllJY8coKMw/eyhf1WqQXgJXAoLBqNhR3nHEpPFTzeHdXcpflQjX0o0vfJDiKc7bTAmQYCjE3wdjBGDloY5/TaraGvGrl97FliLYstHBlwnxi0d0oi3bUrZqyiMX6b1GvB18JSsN1rEc9km9ydGUH0X6c0lOgRtdJccASxmkWtdz7UpTQ06glnAJuSkEgk9VyzM64ZmaC31csEU0l2fYv/UqAZQbtbZVr8KDD9f1lZjANS+OJxQXP6zJe39e0BoPbzBdKxleQP7Rx65QXFb9rcQkjDNdup892PUixZtQcxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=+ubNA55ot4g9uV8DnDaa0Wk8oto8gA0f3+jKufnOzYg=; b=ivHI6/sk1Cd835jJE/ldAPR7G9FwlECF4kYR9FSAPc65KOzU2egSvzNxkWZ3ePEUdmzo4M1fwdz6e1Bwjjubr6XL7BESnKDp3xZBQcqFkr46nSYlGE4JwsTiEf/ULQPnJlj7/rzG2U/vNXmzI96x0GKv8Oy4JJByRpwX8xRQgymXleIMu7+q2gUM2c846eoHbDE58kNDqFXi+wc+0rbNmOKl2840r9yAsLtFOwtJZiSXH2kM0B0GD5Wf/TqIqIO7QQ+JoJW/mOcWaIpIRzzYbRDmqPm99uex/1QDc7uMqZFIXeOvUvrASAgOGI8mRU9WV+dWrMiVqH6NweFaISuiAA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=vivo.com; dmarc=pass action=none header.from=vivo.com; dkim=pass header.d=vivo.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vivo.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=+ubNA55ot4g9uV8DnDaa0Wk8oto8gA0f3+jKufnOzYg=; b=i12DTCZt1+eZqzaZ1CfMyZCJ6xWI+b1+kuNuvkJ+dTHMtJVrF1+DDC72PKUPhw3YzrYBBJu8PHZghT3i+m1QmXcNsNkgu6RXO4Y9hwhiePQkf6mYPiPfu07XJgNbJv7v1Vqqh0IGxklOtxy+Tqj/YiNpJ1wH2HTWSJhlLhtW6YrOS/6O9Nzi0oLpuUegzJWrkvqZt5EpNba76YZWb2pvSz1aCVCM30Og5ArRmLba8N8HtZ1yaNeUqhi8+sVppEB+pg6NAlN7geHG/D9Dpd2lcbVH+/cRGW+qFH6rXxPKPnnH26e3moHGyQWZedpwcSg8zF4ksLLsjlg0ct5Mi2j0FQ== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=vivo.com; Received: from SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) by PSAPR06MB4488.apcprd06.prod.outlook.com (2603:1096:301:81::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6565.30; Mon, 10 Jul 2023 03:24:10 +0000 Received: from SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::fa0e:6c06:7474:285c]) by SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::fa0e:6c06:7474:285c%5]) with mapi id 15.20.6565.028; Mon, 10 Jul 2023 03:24:10 +0000 From: Yangtao Li <frank.li@vivo.com> To: Laurent Pinchart <laurent.pinchart@ideasonboard.com>, Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>, David Airlie <airlied@gmail.com>, Daniel Vetter <daniel@ffwll.ch> Cc: Yangtao Li <frank.li@vivo.com>, Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>, dri-devel@lists.freedesktop.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 01/19] drm/renesas: Convert to devm_platform_ioremap_resource() Date: Mon, 10 Jul 2023 11:23:37 +0800 Message-Id: <20230710032355.72914-1-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SGXP274CA0020.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:b8::32) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|PSAPR06MB4488:EE_ X-MS-Office365-Filtering-Correlation-Id: dc53c45c-1e74-4db1-d679-08db80f52059 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 7k2C6znyJX4BfwjAVlocYqDfoZkP3lj1dMohYqvFZ1i/zS+EEEfB0y5aK4uuBxoR0pnXd3+hsIzAVc/em055RUOY2ERsUTUv8w7BU7oVScvDy0eZqUL3IAeQtKiLyoLGWhnVl6AwbeV6E7zqapjSpHbjIlJf9ZLdwdaD5fuhU0ruDRKTDRTnzQ7jJahLHMe9fmAi6dtzAzWFg2Bzt89Xs7O2zrA+yf4HgWsFBjhKNcQms/oHi54z3EV1V8FgsdcmKIjBuFwjlD9Esw5BGIqSdJYipQi2sVJ/0/IUt4LrzI0B6XxnUoPoJKhNrQezIHlY3QHYAbxQKuR2yfW5NzzpBlv6Lyusf9/rG/L+IoKB5CfGoIqDPK6mQXDuYav4WHj/duPeS6PkzONYYrApYZrCeyNVMRETI0T4AdoTw/V0SM2I/YnfkqwchiCS1mBEtQvUBU1eQ/HDyaRd3PweUclX4fTI0gnDbZJZ4rPciRi7SiZF4Ht//qYpGhJjYBiVE9WvaxLSWPfWaDzCkyOU9hCS54zMs6/ST6cbL7lcrjvVlgy6uOZFgG8Kp3t/2Bxhze7viDdtept9nXVk6z7Ra8IfiSYwMWAFesk0foIgGVqm2Wn4xEeq3I7lMwYsivj1QFMa X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SEZPR06MB5269.apcprd06.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(346002)(136003)(376002)(366004)(396003)(39850400004)(451199021)(186003)(6506007)(26005)(2616005)(6512007)(1076003)(83380400001)(41300700001)(4326008)(2906002)(66556008)(316002)(5660300002)(8676002)(8936002)(66476007)(478600001)(66946007)(6486002)(52116002)(6666004)(110136005)(54906003)(36756003)(86362001)(38350700002)(38100700002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: yDGp9p5EijFC6ppkzcVD+TsDK7RaGZDGDgkuNiEnEiIrgwEXSCEtRteNyetqQImExoWX3lr9zpXz95ebM8Vp3xyPa6ClUgF+uvqk+jLYdqGbcyorZJiJ7MLWxjJGIQi9VJ0kwBY98m1pZ1bUfJGeBidt8OV9Ltx92VOoH5omlYqizWFVXCh9h43LbVklUfV2Tr2B/Z4knLw55uGVnCLM1rnsxS2F4pQ5jUWlvHTQNx3XMRWkpfS8lGkJU69OC2Wtogt7B6+EfxLcFZMVpFrII/ChhzLzpd8uAtNj6/XPfvEOkOGgF/muN6MAXhJBm7hIJpknHn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2xDV8yhCAjfnNiHl/w6XPR10RydW6HaojS2WCmB1WW4D6qLU+A2oaSX1/MnqM4eeOHL3J6wC3QepGhpPyR/d6MaVSqQOkuVZA+O5VB2qGO+T3U44sfXq5dbgDJGq+Am12jvJWJcHkeQujLsxDjok8tW7cwku5Vw8g+4QgBkmEv20 X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: dc53c45c-1e74-4db1-d679-08db80f52059 X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Jul 2023 03:24:10.4239 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 923e42dc-48d5-4cbe-b582-1a797a6412ed X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: C1QWMJieevsbX4JIMAZs0VT5eR+BbZTb5qzd2RADqVllfyM77FowKi48AZIEMmsBGlM9+VZiU9puAdQueFDZsA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PSAPR06MB4488 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1771002943110344156 X-GMAIL-MSGID: 1771002943110344156 |
Series |
[v2,01/19] drm/renesas: Convert to devm_platform_ioremap_resource()
|
|
Commit Message
李扬韬
July 10, 2023, 3:23 a.m. UTC
Use devm_platform_ioremap_resource() to simplify code. Signed-off-by: Yangtao Li <frank.li@vivo.com> Reviewed-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> --- drivers/gpu/drm/renesas/rcar-du/rcar_mipi_dsi.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
Comments
On Mon, Jul 10, 2023 at 5:25 AM Yangtao Li <frank.li@vivo.com> wrote: > Use devm_platform_ioremap_resource() to simplify code. > > Signed-off-by: Yangtao Li <frank.li@vivo.com> > Reviewed-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Gr{oetje,eeting}s, Geert
diff --git a/drivers/gpu/drm/renesas/rcar-du/rcar_mipi_dsi.c b/drivers/gpu/drm/renesas/rcar-du/rcar_mipi_dsi.c index e10e4d4b89a2..4bf9f5d15fa8 100644 --- a/drivers/gpu/drm/renesas/rcar-du/rcar_mipi_dsi.c +++ b/drivers/gpu/drm/renesas/rcar-du/rcar_mipi_dsi.c @@ -1002,7 +1002,6 @@ static int rcar_mipi_dsi_get_clocks(struct rcar_mipi_dsi *dsi) static int rcar_mipi_dsi_probe(struct platform_device *pdev) { struct rcar_mipi_dsi *dsi; - struct resource *mem; int ret; dsi = devm_kzalloc(&pdev->dev, sizeof(*dsi), GFP_KERNEL); @@ -1019,8 +1018,7 @@ static int rcar_mipi_dsi_probe(struct platform_device *pdev) return ret; /* Acquire resources. */ - mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); - dsi->mmio = devm_ioremap_resource(dsi->dev, mem); + dsi->mmio = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(dsi->mmio)) return PTR_ERR(dsi->mmio);