Message ID | 20230710032355.72914-4-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 v5csp4749933vqx; Sun, 9 Jul 2023 20:27:17 -0700 (PDT) X-Google-Smtp-Source: APBJJlEx3vT0tkY8kKxQUOe7GMXYw79jHUridghTdivwOUYKz4j9nghOtq6Okg8kw4R2pcB0ndN/ X-Received: by 2002:a17:907:587:b0:988:e365:6231 with SMTP id vw7-20020a170907058700b00988e3656231mr8997304ejb.41.1688959636840; Sun, 09 Jul 2023 20:27:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688959636; cv=pass; d=google.com; s=arc-20160816; b=fmrlCtxLr856FFl3Y3hMLV+gQ/5ZOu3Ls5jQxr31fgVZ3qEjAzQ19Y1ifzqM1nA+zT 4wt5o1blqf+F2kvSmploRYeHiS++9aEvza9rZQhsiOyfhZvHBq2doB9CYy3gsblD2MWw ov8kZ6Q84O4XUOtmjp3795tVnA+h7hs7JyDG/1K+3BW6jGtY7F5cbjG5mTShGm5NLKCR SAyXnQ5qHZZIrQ8GxYg3ZDZzkBxRoPqldNge4mLH9UspfGudXvUOMrh+V41P91mgxz4X WDLy9Bja5X4asEpKEmDpfvg373cnviTR5kVF6xmE0+5ceMKrDkFFilPyTnBgII2XPNou E+Bw== 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=i+zqlnB9VISi9AH5ikBu8sH4SK22b45CMMph0c8wbYE=; fh=MV5E4wowCazqbcJaVtidHWlRfk4k3yRrOp8IlnZMeZA=; b=baCb1E1w8Muk7+eCBmS6h/CE2BvKssTGV0bAoJUe4jmWccnt0dkNeRvOWJXk6H1rpN aSL7BDZ27mfMv52zeC6XDW4gm1w1f/QfTg2mMCx/6Q79n5/f2S99JV7CFncRoJKVu801 SMIXDCKkP28zCmudTy1vT6fLac7xqUrqqKRvLAKALssBW5GXtWiT50ui7F++iQNausSy zfn+DRI4wXRihAKopVrMtPUqoyO716OgWgaCQUTyOUsXUUd5ch9IeuQfZRv3VhCXSkvz DP08KW9ktK1C+jE1vfisf93bNTgw9xldq/CuQYczqqrUw6/EzoygtBdCN/sj4PMyPeTD AtCg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=VZkcqzYX; 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 s18-20020a170906c31200b00992b3c5c752si7654503ejz.1047.2023.07.09.20.26.53; Sun, 09 Jul 2023 20:27:16 -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=VZkcqzYX; 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 S230083AbjGJDYa (ORCPT <rfc822;ybw1215001957@gmail.com> + 99 others); Sun, 9 Jul 2023 23:24:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56764 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229923AbjGJDYV (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sun, 9 Jul 2023 23:24:21 -0400 Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on2108.outbound.protection.outlook.com [40.107.117.108]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B4E9D102 for <linux-kernel@vger.kernel.org>; Sun, 9 Jul 2023 20:24:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hHeuc31IdyZkHj0+1cMzAj0m7Daolm4xisMkFVk8qNiBpSGoiUzm/g6Mmajn6oD/02R7t7YcncuO07rxkxqiAwUVfaiRqdjVKdsVkZglp+WuaLR2+Ijvir+y2pjvLNJMKYxp3wjzxfMlIcWpl9Um1Shs3VCnMyxoHmaCjIvv00Ux/BISgxZIdKxfQKdhI0OW3F2UN/uqJjR5k0T8+06v2RZsb600Dcak28/6xKLteUtV9lKfRNOS9vfNh6M9idq4b5oyfpiUIgluE3cmZKM0zMI8GPAd2twgZWBnLx32HaruzmM7PZgc1lFkeA8w6lgYEl4+J/vUb/vgIzHN8/RiRA== 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=i+zqlnB9VISi9AH5ikBu8sH4SK22b45CMMph0c8wbYE=; b=MOK05WKn6jwPsOqFYJcAui5D1I20TlG8NTyye0PFNltDyvvAw+7B8Mws02kmjePTwPQSVsG0yAkQ8g08UG6ER2nVu3aPwE+g7XFn/eq5Pma/YkeIvpdRLQSVgbLvvwFn58WaAcUdRjIOfiYwwzIV1zuP2eG9pCdmNlJDtAzez6fynMAKygQDWn2RkhaKLTsXZSBfQXaludH9yY4AgQY9ZNR0tYeZqlURCzPhiHhD4upSxLHfs5h/caOHM1MRhqDWdU+eXOvWW3mz8sqDI221Z0gWVPZwJrx130zX5diN1U9rioOKakb6uHl9Fp/B2zZU6zE0qLUCi3GNOKHb/ZltSQ== 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=i+zqlnB9VISi9AH5ikBu8sH4SK22b45CMMph0c8wbYE=; b=VZkcqzYX/WMbdjbDoE9wWLYrWaWfSL/lD7LdSCUdRLBReX016Lu5ZSvJno0AMOAY9Qu58/kmdhL8ovZPRqcLPVCK0dehrYixpDDlb1FoBXsUgZUzxZsT8dcN52NtztvxUkx7iLc3lALDkOzwQ2k2IkYpCexCAV+S7kbq8JI/Uxg+wHLuh1CX9sx+utLk44bJi1i5E6AlO990xbkdHxNwR0qaNj3eNzBeRD5AGV+vXvHIsGt70beir4Q3Ou8JORlJhctTwL/Uu/+Sphs13XnSjbDcyqAdVs/WJtkAFlsENBYzzGBxFuoEJ6i/soxh3SJOhfod6JmHRKGuasC5ADkefw== 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:17 +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:17 +0000 From: Yangtao Li <frank.li@vivo.com> To: Xinliang Liu <xinliang.liu@linaro.org>, Tian Tao <tiantao6@hisilicon.com>, Xinwei Kong <kong.kongxinwei@hisilicon.com>, Sumit Semwal <sumit.semwal@linaro.org>, Yongqin Liu <yongqin.liu@linaro.org>, John Stultz <jstultz@google.com>, David Airlie <airlied@gmail.com>, Daniel Vetter <daniel@ffwll.ch> Cc: Yangtao Li <frank.li@vivo.com>, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 04/19] drm: kirin: Convert to devm_platform_ioremap_resource() Date: Mon, 10 Jul 2023 11:23:40 +0800 Message-Id: <20230710032355.72914-4-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_|SEYPR06MB5376:EE_ X-MS-Office365-Filtering-Correlation-Id: 587eaa09-7ae4-4a58-7308-08db80f52477 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 3Z25cArspUJvwasUlIjK93obRKedyqNODHZ7TouTnUTiksbvERrzZTr0oASsVu4oovpG0KPwVX5cRo5leFgZZ527nOYcapGDpj6pEUWPmX4vKt9eOUM/cn4YtUC5ul/WhvTUd+wpRoaswYCLmc1EwcUMgqZc/rg/uXgJ+SDUmgJE/yWIhB88dYyY5Wtw7jfwokJkgGnXQok2BfWI9BU3+KBBhEj0sSh935Vf7Mn9MzQcJexYm0tLw5r6XLMf9XGBECk2DREPOsRMc4q8sPbRxWPxGGXGHj8w0tBR6fL76sElKISpT+LBl0cnstk+6VO/pZCzx1vcSQGuBPa4RQqxqwFOs5VIaMqb1R3YwjSM35GVz1AB4vI+JutJVI5FfBdIHhjnI/1bGZ1yH/gQQEpUO230TFbGdXYI78E1/vHuEKmZsFITKJgJlVG/j1Lrnc525DAIGZr/0/Achp2WqHKqPn0YpSXJfwcnqbaPaaLL8cwKDexdsMJjM5V5j9Vy0vTS95/ruL074mh5LgZt20v3U5HVqs2J3s7xgltwEAeafZ2CftclhlxwwFDW1XF9Ru/k5oP/pysvBlaeGwOZ+IZxYE+DyyYOMHIfzu63X8oBBDJVrFA12LxRDNkW3QZoM5Cc 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)(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: EnGKCsB5md+YlB+ROyOrrLwG6pQtIFtHelx6f1AnmCwbRuFrMF5Nhh1d+dcwyL662/gcrUWhVcXdf3Kj0bOmHMt8QmMezB44cRRSU62+liV2KdAat5eYynVs3wlNWKAQlKpz0yF5a7IvtD9shRz7/vvuxyghC2d+bitrscwz36PHVnnyecu6ZUkLZWVFRjt7Eyivw6a2f+0XSEEPp9wPZmVcFztVjpYevbntRMv4X+phW8LUZYe+SKWqv0sLLLUfxsimaeISiXUZN+fduVDdHCwxYLbJGDB70RgMT7n5H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P7dqEvspYcG5UE7dXH2fIQ392pyIA6Y0Uui5whudNU5vvDs9l9hAFQekjySVrGcV9JnHtjIEol3Q/OSeVaTgWrfHQAeWmC04bXoSnolcQ49Pb6jSXLgun1FS2ke0b0w3YOw4qqTxaF+XvSa5VUGmNDHwb5BCi7vs4nW31ZVfCWq4p3xh7NmrPUmJsMWR5Ht6R/JBtU1RKAYzFw/DsbZzfoYPHkNukFLQPl X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 587eaa09-7ae4-4a58-7308-08db80f52477 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:17.2221 (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: dzz6wY631o5BMCVAOOpK+kRSwoNTbSSLYJA6IYGZgcDopP1Gl1Trr7Hbw4xZ6uLY3Vy2EpTUmjy8GlWq2YXhtQ== 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: 1771002540184807714 X-GMAIL-MSGID: 1771002540184807714 |
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/hisilicon/kirin/kirin_drm_ade.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c b/drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c index 871f79a6b17e..42ae68c70880 100644 --- a/drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c +++ b/drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c @@ -843,7 +843,6 @@ static struct drm_plane_funcs ade_plane_funcs = { static void *ade_hw_ctx_alloc(struct platform_device *pdev, struct drm_crtc *crtc) { - struct resource *res; struct device *dev = &pdev->dev; struct device_node *np = pdev->dev.of_node; struct ade_hw_ctx *ctx = NULL; @@ -855,8 +854,7 @@ static void *ade_hw_ctx_alloc(struct platform_device *pdev, return ERR_PTR(-ENOMEM); } - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - ctx->base = devm_ioremap_resource(dev, res); + ctx->base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(ctx->base)) { DRM_ERROR("failed to remap ade io base\n"); return ERR_PTR(-EIO);