Message ID | 20230707072034.48977-11-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 v5csp3082711vqx; Fri, 7 Jul 2023 00:24:47 -0700 (PDT) X-Google-Smtp-Source: APBJJlFHEfdeQL8HTBE0GkuC7koIYJ26w5yDXYBN6RUsn+vrxRs6j/7NaCavx2ycZO0PyfrN/ra3 X-Received: by 2002:a17:902:e548:b0:1b8:9552:2249 with SMTP id n8-20020a170902e54800b001b895522249mr3783328plf.43.1688714686641; Fri, 07 Jul 2023 00:24:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688714686; cv=pass; d=google.com; s=arc-20160816; b=OOHlvw0QqhTfNrhoyWIQOQpYriLeG/F/56WeZjFuUIkcfED57G4naxjlCZnuuRKWGL kKjeaIWAvNkwFjurocZvxV3cb6g0KllEjt2cfWBtEu7KHoX/bTLdEmoKh4ORAX47Sb0w 1kc8iYijy3S5+yAbEFcf4IU296nRsNVxhUNz33e6GRXyJe4qcK7rR9Mq0/aBISy/WwG9 gqSjVEEC3d0osnAMkxnZ7rqhs9YuLyr5EqaSrE0uBJ4bvOLVoKBO/cBPoe1TGpNfwGHh tbcK1SinOtdoQJhflT000d1bj0pjeOe8c99G49MaEZKo2AI2PsVRK5QAoa/VfIP6HIps ggJA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Yc2hhX8ccpa8NG/KKmOqSpO9dEVTF11haptmKKeHccc=; fh=8CosaxLVmmTt7c6Jr6gOWS1rY8DbgZ3Z2abfOQKaM9o=; b=RYvxKmJ5AsNw/0Bq1GaVxs3p2KQr5b7qu0TQdzSfZPcfFR7jOprvhlVwAxQxvmGW5q eAybV3eHz6uX0u0Zn8wc7C7ugLkruXary0Ovr22dQITu9zBj6IOCAGqhcCLDUY/VYAWE gd9hZqqzZT3MjQPF8AsyUzLmidyheYajBHN91xOiutg16MVP7oqlLWcXNFAnrEsHTtJd +QTYUhLrZTFvxiTFFsIiq9ocofFuRhq/zChkMYCkg4O8c6W81YlKvtkrltmADgE8ifVI IPdzdDoXR20vGGcTvoB75qESiUV4I+PR0NJlwF1lUNsPdgBI5SczXAynYumGPsho3IDC 83fA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=dFi6TpUC; 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 d12-20020a170902654c00b001b9736814b6si1506970pln.309.2023.07.07.00.24.33; Fri, 07 Jul 2023 00:24:46 -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=dFi6TpUC; 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 S232151AbjGGHXU (ORCPT <rfc822;daweilics@gmail.com> + 99 others); Fri, 7 Jul 2023 03:23:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55962 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232443AbjGGHXH (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 7 Jul 2023 03:23:07 -0400 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on20725.outbound.protection.outlook.com [IPv6:2a01:111:f400:feae::725]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 360CB2694 for <linux-kernel@vger.kernel.org>; Fri, 7 Jul 2023 00:22:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ey30m1a3HTCmBR8WGDK4cwUSyCD0jQPOdtxsbQQ+7VM3ehM6uB76IDSbqHnxhKftasMHOsRyKEy3Q4BJggWXoEt0g7rjd6BKRRev81Nz4T3K6nWnaL+HiVziL8e17DcU+DF661F/XT+a1jfhudxHrI9mejk2yiOJqljZEeanBu7bsXHoqgTiRjVbNw7LOAaarONHM/kabHwsrSGL3RuE80pHdVhG4y64UhnrJtKPV6r7m2EkCXbXPMha3RWV1aOw90dz91cXI1fK0B89lssKg66kPEG2ctGioxY/xTTLEAP38jO61QSP1JQ0U3XqnssZAuAOiYw+YbU5fH9Ge4ERag== 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=Yc2hhX8ccpa8NG/KKmOqSpO9dEVTF11haptmKKeHccc=; b=YdQxaaHzrdE7yL1p6iKoG54RYN5B8rNa3jIhaojbDYbctgS3FHX417FK+aOYHAzkGKlQBYAFdCyAK+mWp8n6SO6fq6cBIeH5bClroFwq4rqNqzohb3JcLwrxlQxw8Eti1iwS2ByeYzc4Hz1Y8NFUuwEkszf/DPaTYo9UWgXVZIr3dFf1zaszCgqKaocv+LYtIHvbGHuYquS1oavcaoFFodyKXiFzh1Yx6mwz2IFrMFQEG4e/66NlRqCWPD5N4IIJgmH927dXDAp0qgvqZ7B36oO3yYOhHZ7Gssych+8gh6cKxiugCRtrD6KFuR2i3pXq1+6DdI/GA+Yu/P96X+zRiw== 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=Yc2hhX8ccpa8NG/KKmOqSpO9dEVTF11haptmKKeHccc=; b=dFi6TpUCoMTdwM7rrl3x8nQP6Cco4BecY2ZdsiIkUq6WAby/hfBcGQOScjsC3WN91V87iI06KFwxtm2UlXd2TQ7aT3l03tU1pmrzOLdclrBIcE5wbv26u4oNrU2ja2K7fIORBVBow4D+H3MZX4LP0l1sWAZEIz1CH/RQV5wPcOA7nHtb8WvefIsUQijabk9HJVpyBTpnTbmlcY0cgOvzn0B18AxCiH1JdZVMchWWGjP/N46msVH2xWywQfRW/mwTY2fQOQSeTyUTQE1pjH0WPv8e7kYb+2Lgpmths2ZTOstqwBkv6/0cVMJa7gqWJVCpLOKcqDvbJ4NgUnkE12UlaQ== 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 SEZPR06MB5342.apcprd06.prod.outlook.com (2603:1096:101:7e::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6565.25; Fri, 7 Jul 2023 07:21:11 +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.025; Fri, 7 Jul 2023 07:21:11 +0000 From: Yangtao Li <frank.li@vivo.com> To: Marek Vasut <marex@denx.de>, Stefan Agner <stefan@agner.ch>, David Airlie <airlied@gmail.com>, Daniel Vetter <daniel@ffwll.ch>, Shawn Guo <shawnguo@kernel.org>, Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix Kernel Team <kernel@pengutronix.de>, Fabio Estevam <festevam@gmail.com>, NXP Linux Team <linux-imx@nxp.com> Cc: Yangtao Li <frank.li@vivo.com>, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 11/18] drm/mxsfb: Convert to devm_platform_ioremap_resource() Date: Fri, 7 Jul 2023 15:20:27 +0800 Message-Id: <20230707072034.48977-11-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230707072034.48977-1-frank.li@vivo.com> References: <20230707072034.48977-1-frank.li@vivo.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SG2PR01CA0129.apcprd01.prod.exchangelabs.com (2603:1096:4:40::33) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|SEZPR06MB5342:EE_ X-MS-Office365-Filtering-Correlation-Id: 9b1c5d70-aefd-4cf6-6eb6-08db7ebabdb3 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: LFUvMn9dxxrnrnEK7GBCxXPfqFRqQOCFpzqUqspszINJCh8w5yfGZiNzAzbpxJchD6r8qz3mI2zbj6b7TPXWjXz2/ogmxJj3PllHNCW15Q8/K/kV7LF39bJRGQeGISec/2DimMg+nD+vzKco17wGOJaLKdUqU8yP/1uaLiO3praZTbHsRsO6cBmwvkCAeyw64JQ4FqZWprBqTxLPkTGZer7oBA5IHaXFhBde0M5yW6SK91BMheFYxaY0+m0qKFcKauDy8DFBnF7fIQinx/l34X1Ax9GaZvq5p8KEv9On08Ugno0lKu0pyma2mFXBDo1sqvuDL3TyTYhU7cm/+hlAPpLTOuXon7XibKcdLeuGQa7GI/6wVzjHtp1/c860jZSHnzuQihvUYHcITTqxulKM+LjYYNOVUfLWnRwZU7Iq9SlKLwjOi3VTZ1cDWhONQPaY0yFc//8EaqVvm5wTQNWT1p8v78WOK28LlV0sXzshH8p4OjIwEb8Lf/6osUqaDJUAlbBY1jjMqNNcxfCv5IpchW3HDGS6n4enB0nzSUZq9L/xYx6MQMNGwiu2jPAw47f5H4YIYikPcD4HSv3i9Mx/ML+7EZzOxyS15AgDT2irEjJi/8x6ov6pSVG1BCEVRz42 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)(376002)(39860400002)(366004)(136003)(396003)(346002)(451199021)(41300700001)(5660300002)(110136005)(6486002)(7416002)(316002)(2906002)(8676002)(8936002)(66476007)(66556008)(66946007)(36756003)(6512007)(478600001)(38350700002)(186003)(86362001)(2616005)(38100700002)(4326008)(83380400001)(6506007)(1076003)(26005)(52116002)(6666004);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: A7MiIztohGH+2MyK9Js/dXtqALdOJ5pPC5xpzKobdmlFGRE9rDdZJ7tZ4qUiCcQy80nTHgiHmVXQHpggRa9PXqhXVY1UO8YmmnB02ZVCGuWGdb7bPTMYv8EQSqdUhZrNWa8cwrXivCjNXfYUuhc7Vmjyv1LBLfPb+CS/7ya9PU9x9iEQARTA+KEahC/+CltaOUFB7BsA0ldLSMJAmWqj+pZ2bX30Y6a+P2vZgJOZs+nm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Qp8MJErjMRViaEq5iYP00T7A7KYcLaGh2aqJC53On1NExOidMdRc58eqkCVQ8DAhOHpeBWLP4yacwNcfZVp2+CD+O0BhIPcUo+nxI7bdXuszBFdS64EievVp1ke17woFF3bbrKKhRzov9rnby7Rvu5aRF3S2cpNEoAn9enMrpvCNsCfu3pI/w+0vf1OapLfrWmYh/r2AVaZjyHwJ16vao3isGA9p2SJ4Z6jaYKmV9OJ/atdvyxSRdlCOTM3kv5v58ms+Bl74D4mer8YTL/PGhGhEcMoVEPoywzzDTahbMNQ0 X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9b1c5d70-aefd-4cf6-6eb6-08db7ebabdb3 X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Jul 2023 07:21:11.7115 (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: LKViEVI66fePu0wj5uPgQN+arb/iwAipqdMN/eUSdhZCNI6lXPERAGZdcXdSeDU4OiSta6lbtpIajk6V1X/duQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEZPR06MB5342 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770745691143762122?= X-GMAIL-MSGID: =?utf-8?q?1770745691143762122?= |
Series |
[01/18] drm/renesas: Convert to devm_platform_ioremap_resource()
|
|
Commit Message
李扬韬
July 7, 2023, 7:20 a.m. UTC
Use devm_platform_ioremap_resource() to simplify code.
Signed-off-by: Yangtao Li <frank.li@vivo.com>
---
drivers/gpu/drm/mxsfb/mxsfb_drv.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/gpu/drm/mxsfb/mxsfb_drv.c b/drivers/gpu/drm/mxsfb/mxsfb_drv.c index 368b1fbd8305..c8b3fdb1ab09 100644 --- a/drivers/gpu/drm/mxsfb/mxsfb_drv.c +++ b/drivers/gpu/drm/mxsfb/mxsfb_drv.c @@ -213,7 +213,6 @@ static int mxsfb_load(struct drm_device *drm, { struct platform_device *pdev = to_platform_device(drm->dev); struct mxsfb_drm_private *mxsfb; - struct resource *res; int ret; mxsfb = devm_kzalloc(&pdev->dev, sizeof(*mxsfb), GFP_KERNEL); @@ -224,8 +223,7 @@ static int mxsfb_load(struct drm_device *drm, drm->dev_private = mxsfb; mxsfb->devdata = devdata; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - mxsfb->base = devm_ioremap_resource(drm->dev, res); + mxsfb->base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(mxsfb->base)) return PTR_ERR(mxsfb->base);