Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp31561349rwd; Fri, 7 Jul 2023 00:49:30 -0700 (PDT) X-Google-Smtp-Source: APBJJlG9vosj/G0AlA3IPck+iv/MRDfno5cM+5CK88NYrHxmetd6A5KghdbACHQj8lWjYJSXSPTm X-Received: by 2002:a05:6358:260e:b0:134:c836:8e15 with SMTP id l14-20020a056358260e00b00134c8368e15mr3268868rwc.32.1688716170167; Fri, 07 Jul 2023 00:49:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688716170; cv=pass; d=google.com; s=arc-20160816; b=I+jMFp3rrOSD23668uxp+6Uf/wS+LdIy4+IsGL9B916saA40rpQbK3gJuw4yixmhrQ uKHVy0lxlIdqs+RoaRn9LjJugYzTcflnYiuShZufqaC9KAdynob2Z6OoeEQum09rhklE gfzmJ05/gzxg12oQeHUWCOLdIkn+0uALo+FrO7X9Da8svFtw/bR3WdiiB/cSS3MtlIh4 Lbq6VDIP80dC5FNyVwGTmSx8a+20Y0uB9K0f1KRB9lG+0L1dlhd3rX6eeQsbysQJEtSO BFYr5UorSq7NnugUVoVJUWnreLtNpXkqroQA57Z8zyXdjQAsszF6LX4xgU94ckW2YROi ppVg== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h21-20020a63c015000000b0055b0dcca8b8si3059077pgg.612.2023.07.07.00.49.17; Fri, 07 Jul 2023 00:49:30 -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 S232163AbjGGHXT (ORCPT + 99 others); Fri, 7 Jul 2023 03:23:19 -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 ); 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 ; 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 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 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: =?us-ascii?Q?A7MiIztohGH+2MyK9Js/dXtqALdOJ5pPC5xpzKobdmlFGRE9rDdZJ7tZ4qUi?= =?us-ascii?Q?CcQy80nTHgiHmVXQHpggRa9PXqhXVY1UO8YmmnB02ZVCGuWGdb7bPTMYv8EQ?= =?us-ascii?Q?SqdUhZrNWa8cwrXivCjNXfYUuhc7Vmjyv1LBLfPb+CS/7ya9PU9x9iEQARTA?= =?us-ascii?Q?+KEahC/+CltaOUFB7BsA0ldLSMJAmWqj+pZ2bX30Y6a+P2vZgJOZs+nm7vGk?= =?us-ascii?Q?5C7erZWgjMsi87BAxUKqu9sU5ab9VxMDxHFoLbMk6rWieH4HRNNwd6VtkcEG?= =?us-ascii?Q?Va0TfhI1Pgey3QSpLcDF6fhunUl2ypzqWtHb0roRDG0MCPcCxhvtjFe5+n9I?= =?us-ascii?Q?6fWhEMXpPT+Nv7hosN9fNGtiqb/J3JWGLXKa1+FVw1HZNO9IN7UYI04tFEa6?= =?us-ascii?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dVhRAcbn1MQp8MJErjMRViaEq5iYP0?= =?us-ascii?Q?0T7A7KYcLaGh2aqJC53On1NExOidMdRc58eqkCVQ8DAhOHpeBWLP4yacwNcf?= =?us-ascii?Q?ZVp2+CD+O0BhIPcUo+nxI7bdXuszBFdS64EievVp1ke17woFF3bbrKKhRzov?= =?us-ascii?Q?9rnby7Rvu5aRF3S2cpNEoAn9enMrpvCNsCfu3pI/w+0vf1OapLfrWmYh/r2A?= =?us-ascii?Q?VaZjyHwJ16vao3isGA9p2SJ4Z6jaYKmV9OJ/atdvyxSRdlCOTM3kv5v58ms+?= =?us-ascii?Q?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: 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