Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp34783626rwd; Sun, 9 Jul 2023 20:33:42 -0700 (PDT) X-Google-Smtp-Source: APBJJlHKuEAmcbOA+4GTj4ZIRltOeQHM9r56VQVsDPmOJXw5fdUx82Qsl/zRcrUK1T1TzrmHvxJh X-Received: by 2002:a05:6358:5923:b0:135:435d:fe62 with SMTP id g35-20020a056358592300b00135435dfe62mr11360249rwf.1.1688960022124; Sun, 09 Jul 2023 20:33:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688960022; cv=pass; d=google.com; s=arc-20160816; b=R0onnzdqLztIhuVkpYktGSjp4jNNh+ZDgMXoiQxd2VQm5b6+L0c42Gar1rKyNG72Qm r2t+rG0Ky+TxpfRIECeM9/neg0i8NOpYBqbX7aKKGw79uUJIVKc3NLuF1rCTCXOcFta5 Gug4gjks/YsGOfwQ4htTkwWmrmpUlu1lK3WCbb7nk+kgaoiBOeXzor6hjXvzj8LHOvuc LjMK4I68QleLSotviXfKQ/8SOjhU3p1Ac6aGfT6FJYVn80Nlbcv2icXPQ9zkJUpmhQ2g jqG6ezHrpnkUd7Wza54EPUTR8WJcndE1E+xX6T+FpuZFKVdft4Xv7/Tu4x0QTMiKhHgD wGdQ== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b8-20020aa78708000000b0068270404171si7596911pfo.208.2023.07.09.20.33.29; Sun, 09 Jul 2023 20:33:42 -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 S230377AbjGJD0O (ORCPT + 99 others); Sun, 9 Jul 2023 23:26:14 -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 ); 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 ; 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 To: Marek Vasut , Stefan Agner , David Airlie , Daniel Vetter , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team Cc: Yangtao Li , 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: =?us-ascii?Q?eNqrbERRGTUx5ehj2cd3ilhfPaUEwB6kHSupzJCcpR0VfggjcH/fniQDmTOb?= =?us-ascii?Q?EY3z7irtz0r9jl5UHApCrBGCDEwp1ZFi9enNZN5beTEn/EVQGi1jBJ25izzp?= =?us-ascii?Q?xZ5MaJaxTeohnYAVpBO1+M/NHhlDCAJANIb9z68WKIA5NHU05oUTin294tg7?= =?us-ascii?Q?JwgoWpT0C6zOPyUSuwfqqEUbYeUl5+TcoFPudE9coXk98flMNnJon58Miv0V?= =?us-ascii?Q?m1O5sHmcQI6XFx28vdp26KlG14g5CjvYx9uTF9uXUFctudENaXtpJyaKgowd?= =?us-ascii?Q?Q2RqdR1ySwLPPsl7ZDg7UD9CRFu36AEvNB6oSyvbHwF6jcogz0InqviK+IpV?= =?us-ascii?Q?KIZ1gybBXHjqZGxt6SSNAruJlOfJuiXMXCjOP6beG25ElHqG2IL9wtEK1u+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0fS3MN8IWI75xrvp7uWDqE/MOfHU?= =?us-ascii?Q?EDJmeAP8STixROTM2EtRR0rq1mVAbufK6/DVH81GLQ1cyMWB04Xa693gf2sj?= =?us-ascii?Q?j9kDwfiOVlwZOy8bFLElYNQjZCOvPMmyzrQF1hgCwV/cd4x+uJKMnrTjNo8C?= =?us-ascii?Q?FUuGCuSO1/+fSnek4mRm/XKgw27GmcjaWIaDLY/02pBwDRBoexbj+CMc1IOg?= =?us-ascii?Q?PvMWE05pBuwA8LUZl7yMf3OOUYk23T8DI+ryfESXiqgTF4/AUJlV9+TOyi3F?= =?us-ascii?Q?H7ZRPYQLPIV/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: X-Mailing-List: linux-kernel@vger.kernel.org Use devm_platform_ioremap_resource() to simplify code. Signed-off-by: Yangtao Li --- 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); -- 2.39.0