Message ID | 20230710032355.72914-14-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 v5csp4752181vqx; Sun, 9 Jul 2023 20:33:42 -0700 (PDT) X-Google-Smtp-Source: APBJJlE4a8cPb8Y3R88cgHAKK1j82kBP7V8Il6zRQm1wotyp/Z07dz8CWJI7bRPXmVsF8z0itbmT X-Received: by 2002:a05:6358:7f1e:b0:12b:e45b:3fac with SMTP id p30-20020a0563587f1e00b0012be45b3facmr10002058rwn.32.1688960021799; 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=QWiplupEhjhEV3F0sDhYCIRzkoe4ezEXvkkW5J7fQKaYae76mRQVGaeO6HtgqHDpBe Nny8KESsbnTlGKGb6EJYk1MMl6HxiqGPMCACe4LtKaRvymNGVHJrg1MaYnGDnccCOp++ 7TGAA/Tynjs5SSYBOfVGMKyNuFvhuhc4/DhT4cJpOoxq61zjGGurZL2g9ixrtZg9rh0L r6nmp5YNDrvCBa0yvfYZL/YutT9IYo+oXo3sT34PBOzWGYB9OpccBB0amSthlflRLeL+ nKsiKyG0RJaicWp0s/F9l/eKE/h8c+gn3dCa1Y6ZHMWN2CQMplMt+XPbQ3IwSVlTti1p P3bw== 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=CFadkbB4ld6jq7/H4vKooei5J05bO+Y6n4oq8yBFxxs=; fh=/TUKuXtSihbRKCahUhP0s3Kp7RuFd2daguP3vCYpJUM=; b=aTLS7bEMNPeu7urtelXlCrnBK2SeaAo1hn4I0kU0Wjm50elV0SqrN/X+St4FaB+GvI oREF5kjc3WK/jhD2jPIMdLuxdjJDQywIDYmwFJ4jX4mZU15c4aLw8FTuwIC+7cntdTGg afm4BTW+OWGL1UjlRDtK44m+sGNJoJQVdlBsodSpry+BYF6BEoORbcdaxv8RxQGK/C3T Iu0JuqYyAjjS0lWNvODPpt0gGAfad1D8MUr5Jf5iyxCfkXlX6LZT9WJyQshvcjknATd0 Qh9aRlWMCzNTIyrZ/VWIHB8T/tv4giM80b8xDkTlaOs6nOuOsizg5vqIJqq/AiJvrzvE P61g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=kmk2XvaT; 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 fh21-20020a056a00391500b0067a5e893334si1006533pfb.55.2023.07.09.20.33.29; 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=kmk2XvaT; 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 S230340AbjGJDZ7 (ORCPT <rfc822;ybw1215001957@gmail.com> + 99 others); Sun, 9 Jul 2023 23:25:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57540 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230238AbjGJDZ1 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sun, 9 Jul 2023 23:25:27 -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 D45771985 for <linux-kernel@vger.kernel.org>; Sun, 9 Jul 2023 20:24:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IZCMSCM9hPdVA7kXan12Uug2YkOvFe30WR5N+1k6OT8e5fl6B52B/ZA7pQRnPMGKWfc2Bnk7VKkJhFHBK//dlP7S+3FQh52wE/udL18oOQI8QI292hVZGWq57RL1cKRXtVdMyR/spx33+U5xJvw533ji24tEvpq6CfECcwPoLqeIODrk0S0jnkgVQnaFfcy1zq747NU3Iq//NkiNGWXkHW4MM+/EDT5jYeO13NbKUtm/Og976ugI7sSw8m3iJbPmdZ3aDB5ItbjGFSDbwDmbK+OQfhGx6O8T3o+SRU/IcJ4M2Wb1RAsMo6S7yS7oZnfpHkC0l1XdvcW0BTlhj/lj0w== 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=CFadkbB4ld6jq7/H4vKooei5J05bO+Y6n4oq8yBFxxs=; b=EarKwtMvsZFu3VoU8fPEnrcDQyCyr+sY9+/n+T6GVjpTi2rPprNvFDs+PPFP0jABefwz0hA04bUWj2pTVzl0PiEjUaEwkvpm9/iGXtoyDwiqk6JLj/Aiftf2EBlApQJ4A7F7aMAC7Y/9chl49hNREejTFOXElivImlDOl7e69BWUvTSFI0VFhtrNdZpYjf0zFwwsYpMprloiXlwqjbXZpnjUJp0oXb6NzUuQRl1XRoHNw9G0mrCYj/c8yfXKIYbDaVCyIIQbGgr7VOd295T2xJBHJJs5iCVoRS75D2Q3Tx5GjmbEcuawzAiNIgiQvUzvqo7X8sBxp6hb5cKwnhYFjA== 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=CFadkbB4ld6jq7/H4vKooei5J05bO+Y6n4oq8yBFxxs=; b=kmk2XvaTze56PrGDdR+t9SDmBNoygcTUwWPeojZuw6pAbjy06aacUXtnpmuo6fPmTZtSATRl/Z064TD4mGcgEjRT/sQ5ROnAFOM91/waie7JFDvAZ9uWO8FldxxuaeFDvioyHe50c1cqgZ0oHYMtdGWYFQURA4R/z8i+f9UD8JFW8Ao6VvBuvB88On5deT+X+LzRzuiFKztGFuV4Y9KZin3HpnDEiblsz5IT6nqJhQSG4+lhPYT0mOO4BlOfip49dgAkGeFPdVbz2v9P6TuLTeVj/Ck4SCmTvr+6sRZeWvK39eOIlfmvwW8rT6IrcRso874Mud+mzcKz2Ykqlua3Jg== 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 SEYPR06MB5376.apcprd06.prod.outlook.com (2603:1096:101:8f::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6565.29; Mon, 10 Jul 2023 03:24:42 +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:42 +0000 From: Yangtao Li <frank.li@vivo.com> To: Yannick Fertre <yannick.fertre@foss.st.com>, Raphael Gallais-Pou <raphael.gallais-pou@foss.st.com>, Philippe Cornu <philippe.cornu@foss.st.com>, David Airlie <airlied@gmail.com>, Daniel Vetter <daniel@ffwll.ch>, Maxime Coquelin <mcoquelin.stm32@gmail.com>, Alexandre Torgue <alexandre.torgue@foss.st.com> Cc: Yangtao Li <frank.li@vivo.com>, dri-devel@lists.freedesktop.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 14/19] drm/stm: ltdc: Convert to devm_platform_ioremap_resource() Date: Mon, 10 Jul 2023 11:23:50 +0800 Message-Id: <20230710032355.72914-14-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-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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_|SEYPR06MB5376:EE_ X-MS-Office365-Filtering-Correlation-Id: d6e5b004-8093-4b2c-1d25-08db80f5336e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: HoaeEKf9Tl5pFIgJJoZMbUxOUIdJ73rQzoOFaUWAORvKmaLqjSCuPfXhOI5W/FRHi2xIPJQBKSbUP0/oLIGAXRXoF3/uOcej2OcJbRIm9nLKyPP2FG9pe2sx/KrxzaQ9z6hGDJisxXSa7rfBXDjDfagkVaCgztZQMDaI+MWOP7NUZgsiD2NOT7IEy0/PiOFCjqD7Fh2PA9ITl67BoKAtTquujkBO7s9gRe8YwHyA6HQnKVVJ0Wv/aLZCvhonTaXekwTEZJcBjeHgQ54ziJoM4o/Y3xGSXmVF0nk06Ve6n+qd+2R99w2wNw/tDHMWLtVTWXRM78ukQ3u8uwepyx2hgulZYzxxS0gJRPbttgs++hJ8hZUGswIXWYXi3193H6zokAQuZbov6yB/W1eCSupSeNBrAnu6UJUrpc7L9smoA2yaBrWpb6+Sa7AP+m80EKtX/k+ypAvG34Y+5OTbZ5+Dlz4L0FVZYEQtCP+jrMUv+ywsqYNlkXFF0047Bi9Jo2oBvgtuzbjcwdGk2sk8x16BJ5yaXK/IrVzrSUAwLPCP7YcbsTx7g1DC8A82i3iHZDg/DdhsH+g2HoLLQmRi2+67F5LpJRXzeJyby5f39XxZjeXU7tiwGzJerpx06Pn+SqIE 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)(396003)(346002)(39860400002)(376002)(366004)(136003)(451199021)(6506007)(1076003)(5660300002)(26005)(478600001)(6512007)(4744005)(2906002)(110136005)(186003)(83380400001)(2616005)(7416002)(41300700001)(86362001)(316002)(38100700002)(8676002)(38350700002)(8936002)(52116002)(6666004)(36756003)(66946007)(66476007)(4326008)(6486002)(66556008);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?FhLHhqbbjlOpcxLTaxHnMYXjk9HN?= =?utf-8?q?4sQCvF/lH2AIcXetakBiax4D2fTQjM9OTqZFTJhmZu8DIyeaD4dcYM5acFmuRA+4f?= =?utf-8?q?J4MBLwXcND81MTe6GVKbdhWuUmb583lTg5dHNYeSgOlDfnMh+TzSGLId1mC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=?utf-8?q?KPimBSVg004C0VI/pXKcyC01w/AjnzGTPLUYZjf7D4mf/zNHL2cr0d9x05ddHEycE?= =?utf-8?q?IoyGd2HQdSrn4LJdX0DzGvc4ZkDSj5kOxMAjK1/BxlRQfPnVdNFkBjSWcse3VEcIY?= =?utf-8?q?YcSXwn12U11MtirigjMWt8i8MurrouOSrMcvGYAvF/BDX6mfuyFGBqQVU0yE0yJ9v?= =?utf-8?q?Bzpc5EBtTECd7NqUO/ZCij2rg10aFR5xJqkIXcmFCMr21diPS6oEpDRC0QlMBJTtm?= =?utf-8?q?g+M6sVREG6SaorzhOWVbiYxyzTR0wHNimIcwE4gt/yDR+PnDGZwOaPRtYJhzN3+Ya?= =?utf-8?q?PokqeQiz9B6pvwwZhf/CDlZK1ja8hcG1420pAj+hZcnbR8Z0UAxjL+MjWLDgQk9PE?= =?utf-8?q?TEhXRfPAGmfCRlyBYP/A6+/jXwKp2/BLC/R/d0MlE3owhxDUdEEV/ZsXas7wLrKOj?= =?utf-8?q?CfjdDWhCjnzhUGPqJxFb2LdrX5lWY8CW8upcv+0gv+JPpTpIWvEN0kk9PJlUmUEjV?= =?utf-8?q?Lq29rCjj41O4?= X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: d6e5b004-8093-4b2c-1d25-08db80f5336e 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:42.3384 (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: XSybH6/Mm7VDh7yy9avKfTjb7KtGW8a3hZP+hYSULFK3ZcHBbaDlsCX9c9BaTMkINBBCwTRULJf0gpJEUpdswA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEYPR06MB5376 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: 1771002943756241591 X-GMAIL-MSGID: 1771002943756241591 |
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> Acked-by: Raphaël Gallais-Pou <raphael.gallais-pou@foss.st.com> --- drivers/gpu/drm/stm/ltdc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/gpu/drm/stm/ltdc.c b/drivers/gpu/drm/stm/ltdc.c index b8be4c1db423..734dca4d7dd8 100644 --- a/drivers/gpu/drm/stm/ltdc.c +++ b/drivers/gpu/drm/stm/ltdc.c @@ -1925,7 +1925,6 @@ int ltdc_load(struct drm_device *ddev) struct drm_panel *panel; struct drm_crtc *crtc; struct reset_control *rstc; - struct resource *res; int irq, i, nb_endpoints; int ret = -ENODEV; @@ -1992,8 +1991,7 @@ int ltdc_load(struct drm_device *ddev) reset_control_deassert(rstc); } - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - ldev->regs = devm_ioremap_resource(dev, res); + ldev->regs = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(ldev->regs)) { DRM_ERROR("Unable to get ltdc registers\n"); ret = PTR_ERR(ldev->regs);