Message ID | 20230710032355.72914-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 v5csp4759240vqx; Sun, 9 Jul 2023 20:52:58 -0700 (PDT) X-Google-Smtp-Source: APBJJlH9WGee/wZO+Ue2MIaIvIJD3hGLDNOfbGg9xyETlt37V4vW2LE0nfy1sqCpZOk0chk/pPlB X-Received: by 2002:a05:6808:1141:b0:3a3:6329:4cb7 with SMTP id u1-20020a056808114100b003a363294cb7mr13996699oiu.9.1688961178344; Sun, 09 Jul 2023 20:52:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688961178; cv=pass; d=google.com; s=arc-20160816; b=wYuFFaBZd8zy2JDZmc1K/J+v35oX2bOYk4d9IyN6lKNjJEzYEhxiOXY8V9Xv7vwQel PxZpm/3IMLjAcn9Ln6uF0a7jidsYZFEG66AMT4NqpjTr2zxOpY9/TdswPFRkGycC47Z8 +HcrU0dUDtkQc4NJxfn+D287Oz38w8FhipS4Gc2rRgc9z13iiipr0jW5sZjUCrbj9oFs ylAG93MHfq7UcEOrYe7PtlNl3TcCS5kvhdSLz8YB8eYRO+7XCeT5GPQfhvYPjk4/c0IP jlaY/ZshHjs8cA52MJuUmEfYwqDUZQF2Fm31ehna7gaB+J2TTwrx0M1sSJDFkr9LX3DM ROhA== 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=VQniKFpranl6/vAmeWNHA88EA/zCX310naNgU5TBqN7fC/6QT1wRu20HZ2CkGxbpjO to8mW6huOfyKe3CkFCo2pgc16+IfWpmwVEUF7Gfl0H8fRoy9104xJqP2FIS3QxyrCwqj IgyqnQmoexCirH3XqA7Aptrc3sYTuFWDeZbBGrcY+CwvIXtZ2314TeA8HhF+bGFqNE8L 0C4KUSl9cAmDc4ZupP/gX4KVtV6Zm5flYAp4nbX4RjNy63e4Nhmbp7q/Jkrgdxe7wU6Z yGdI8cYzXXoC93Oyp1YF0d6LFffGlQcmgR2pWtT4aNDMcQQhZISFjt7IG9vC34TfjHB4 9akA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=qH6GLvQq; 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 k32-20020a635620000000b0055bef93b8fbsi2355091pgb.75.2023.07.09.20.52.45; Sun, 09 Jul 2023 20:52:58 -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=qH6GLvQq; 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 S229555AbjGJD0P (ORCPT <rfc822;ybw1215001957@gmail.com> + 99 others); Sun, 9 Jul 2023 23:26:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57596 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230053AbjGJDZd (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sun, 9 Jul 2023 23:25:33 -0400 Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on2116.outbound.protection.outlook.com [40.107.117.116]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 424341BD2 for <linux-kernel@vger.kernel.org>; Sun, 9 Jul 2023 20:24:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=iaWgxSKQ6JCFHI4umV0Ux3PVIJvNkoGFv4IEUnW5xaeyCZRgLt8nyaWmuPiIlqALJunvLDw13wvqs6tXRErgxX2jQ2j2OFYIW8cUje1fhQUwwLMH+2V3/gCDl4CS0QZ6Wmx/xRZ7WtjYcifSYRpKVa5Bs4kIyZU/+OJSF1hD946gma1se4KsUpfCEXdm5LXU6t8hPwRd6T4KU+NW9ZLA076/wU1fuovaI/bw8XNppxfqUXiDKlRnTkTaj4sDb7fuPFPglsYTLvWM7ge3QzZCjFirJrRAY55YtEbQWFaNWCqesK+Pi2Em8qHpHVypv/YouD+0jgytS8BV415tm/ZBCg== 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=n/jjATVCQubbmRcr55hdEr5ja75flUl11oUjGSbXkYaOhb0vvO4uxYk/mvt8fwezwWoLFxMAoARnD3cBBSlzoOz/eVS3Gt7Xhed6dfWmhR0KjP93tIGemvO0yYNlbSLc/p464W9CjxcBgphZ7+tjTeFjrNAQDzX/u5UYBQqfWcO4Es2DV0aqOjwt7bbaiC/vbQNsFox/Dm1hE3ji55uupfcsIU78ZEoA/N09RwlPpP8KAErz4dtEbDGwALjzHB9Rstnr5C/97WfrsWo8QsZB+ejXi60r4yAwraPFdLF7qYbUhsjG4YfhIgep8xEel+XTJreLZQJgT/m9/Y2KguKuMQ== 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=qH6GLvQqwmdiEMc2RmE8pfKNue9NqnEVoIzvcbphfB9wFQfkMqQZI+ryEIHfKUD1Duywtyzab2oAhUwad5VeqRYzjcbAD8Z3bbirjPUXj6+dafSGDJ9FIdBUcCEjneiKKziS9kdmLnwhOuCMEGinpkcdI/pJoVJqYoRLGode7HVMDVCjHgHs9ZlR7v4g0UpAguRbvKUzx9WeTbn5DWnKR56HuMROfRzu0Ogu9AS7wD8Oc0cmvPl15GYSauhIjuAzChbsqmJ2f5wQw/A+CQmz7G9eBsFdP/TGSFWZMrJU3p19RGSp9uup7979Nb8g/7Wvw/kbyDdyMYXlqT6h8gr6kQ== 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 TYSPR06MB6472.apcprd06.prod.outlook.com (2603:1096:400:47b::14) 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:34 +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:34 +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 v2 11/19] drm/mxsfb: Convert to devm_platform_ioremap_resource() Date: Mon, 10 Jul 2023 11:23:47 +0800 Message-Id: <20230710032355.72914-11-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230710032355.72914-1-frank.li@vivo.com> References: <20230710032355.72914-1-frank.li@vivo.com> 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_|TYSPR06MB6472:EE_ X-MS-Office365-Filtering-Correlation-Id: 8ad84b70-0257-4c81-ee7e-08db80f52ed6 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 5W9ZZxaOQ3gvdW/ThFC7k4u6IJme+VJXVIYsTTzuDYjY45ectMzN+DZygtNCi6VWcVISVOQCXIeD4Zs9NF04VugZmZPtCdWxFhcDqYPE2Vakp27+J+VG5i2nzeGEmLkqe/F3o1KVcGHT/6OIMDURc741q528qyzGRQYNRH02y7uh4dk68tNA/ZGbejrWsxe3gkj2FHHnPqCo/l9pqEFvm2KLslzbuie6iSY2XF1dVUCXObdU+Y9yicuL4ZKL64J6iULyykLvqydRHv91/SxdjDlPXot9Tcm7cV7RbXMEP9Lwrio396oNbjBwsrouFZ26zCK5uFDG+/Dm2azm4T/BXwNPgmN5X18K8I3r+RCGdfvyGtOSrNv3yw0gslno1tFM+LEbp9QpBuvLlwagEl6Kwuf/T+XXix/8bTNcpWNn92aYQtcvvPnfU256zYjHmB2/mRAWd5OLYiW58srvxPisEAFVisZK+hUY+gHbXa3iRN71f9tPQYMhxmTZW/Tu/TWz1ZV617g8+8nSH2xIJ8iiOyZ/y2RSJ8tQzx1QGKOmX9E+vFi9Va/hJrR6G5WKMbj9wAVEWay+g5CeQqsV/+nJxp0PzAmQz80h0G76ZRvQ+UKJxTMtCGzAsF23fxcP6eS5 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)(366004)(39860400002)(376002)(346002)(136003)(396003)(451199021)(186003)(6506007)(26005)(1076003)(2616005)(6512007)(83380400001)(41300700001)(4326008)(2906002)(66556008)(316002)(7416002)(5660300002)(8676002)(8936002)(66476007)(478600001)(66946007)(6486002)(52116002)(6666004)(110136005)(36756003)(86362001)(38100700002)(38350700002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: eNqrbERRGTUx5ehj2cd3ilhfPaUEwB6kHSupzJCcpR0VfggjcH/fniQDmTObEY3z7irtz0r9jl5UHApCrBGCDEwp1ZFi9enNZN5beTEn/EVQGi1jBJ25izzpxZ5MaJaxTeohnYAVpBO1+M/NHhlDCAJANIb9z68WKIA5NHU05oUTin294tg7JwgoWpT0C6zOPyUSuwfqqEUbYeUl5+TcoF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rvp7uWDqE/MOfHUEDJmeAP8STixROTM2EtRR0rq1mVAbufK6/DVH81GLQ1cyMWB04Xa693gf2sjj9kDwfiOVlwZOy8bFLElYNQjZCOvPMmyzrQF1hgCwV/cd4x+uJKMnrTjNo8CFUuGCuSO1/+fSnek4mRm/XKgw27GmcjaWIaDLY/02pBwDRBoexbj+CMc1IOgPvMWE05pBuwA8LUZl7yMf3OOUYk23T8DI+ryfESXiqgTF4/AUJlV9+TOyi3FH7ZRPYQLPIV/uTxjIva+V0bhCWm3Ex88Om3qkxHX X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8ad84b70-0257-4c81-ee7e-08db80f52ed6 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:34.6317 (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: mwzPw5ooamCmS8pJscrFidbza7t4b3z7kyi3p//tytv1TvRM1pU9eFndUZMYEEYti2SQyZR0uaz4GMpcEtt/mA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYSPR06MB6472 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: 1771004156780795346 X-GMAIL-MSGID: 1771004156780795346 |
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>
---
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);