From patchwork Fri Jul 7 07:20:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?5p2O5oms6Z+s?= X-Patchwork-Id: 117024 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp3091147vqx; Fri, 7 Jul 2023 00:46:53 -0700 (PDT) X-Google-Smtp-Source: APBJJlHAMa+ZY0P++g0FKG13ncyljbjHphbx4cGIuhIthmRJNef9P3H6i9DZMmKvYrz+J/NiXn2m X-Received: by 2002:a05:6808:1190:b0:3a3:f13f:8036 with SMTP id j16-20020a056808119000b003a3f13f8036mr81706oil.11.1688716013563; Fri, 07 Jul 2023 00:46:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688716013; cv=pass; d=google.com; s=arc-20160816; b=Hb/qXC4s00c0o/t+1EYe4xY17m6Ia/odXrWuoT97Rf26qA2qqHo44YtMyEdGcqkpRU 6dBpLd7feqi79DDywEJ/FC18onq68tWfZrR4zpP5ahOOYYdth4zkMo34V7Zh32abFf0C ifZ5AZH7gfBPcdgPexzS5lRmdZ8YmnGZ4fkMSb+ItVpGhAKlmA82/Tb7rBJBF5BHv+s4 2YpG1AQVTPIUvSfFPSAYjN/iCnDaYsiwFj0gP5Q7RUzqVgt2Pub8TIAbEC+v1IQIIjsZ XSSNLgRYlscFruSB6TTuhoRvONspflP6Tybe3MqPoqiyt0dGEBNFmGXxD9RA8V6wgtuh Dk0Q== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=sueL6bmHylA686jA6mVhKi7yXxUHBSJQDngnUT3zNJ0=; fh=eTsuAg26YNSknCm33oTSV54XhjqUiyfYJ3cem+9sw3c=; b=FV7a4dKe7xXp97/YQUC2ykq1mO2mVuCCZsN+W6bAaZPUX1kV75zW4brJ120q/J6T84 BanAMomI/U+8rsVL/hCbt59SZTB7fpEo8h5hzJkLWsJm+oUj9/8Y9WNjH60T33f6i10I f1FY2jwF0zE7G3evZxekUUtoVq3CbImQZWGhurp/oDsK5+2z53gOQ7HbOO5DdtSI6Ctk LG0xY+aPM60i1Lg7hkIZAQjmYI4LV7WeooQdEKoyqD0F+F6jmbGaKgOM7BZMiU92n5E1 pwkdkLsly+4sAAzeDeGZ9uDgeq/R9IBOYwQJMugQao+ZeFEQOTRZpcM2S8gUfVY6uYjd Actw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b="jfW/b0VS"; 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 15-20020a63144f000000b00534780446d9si3228005pgu.640.2023.07.07.00.46.40; Fri, 07 Jul 2023 00:46:53 -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="jfW/b0VS"; 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 S231675AbjGGHUz (ORCPT + 99 others); Fri, 7 Jul 2023 03:20:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53914 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229661AbjGGHUy (ORCPT ); Fri, 7 Jul 2023 03:20:54 -0400 Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sgaapc01on2102.outbound.protection.outlook.com [40.107.215.102]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 952B71FDB; Fri, 7 Jul 2023 00:20:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YEvSqwQsrLqPeg4LUQPKAGTWvgvMnG7MyznoQ+1fLTqtvkprcbNnxgv0vzo4UBXNVIfEnp1L8i+JzcTb6XIKRBKQ5K2JiUg25Keykpcv6PF6jZzNkIzoeG2sZLfcwXwoSqBmIam0pbPI/Qot02L7GZg60zXCXtzKIjwVm1h+5MAX3J1LPXn38r5XLveLQA0Bb20OvIpQ/bSXOzEVXQcyYxnqrBJSb5ANrYyToc93kI1U1T0WNkx6OoQGzAqIZ6MYd/hMofNZxpjF7lsnoNOaoSMI0Jhlgxyi5QupWdP9+GjRbK+FmohY/KfOzfP7ebg3A/8/i4ae7cKqoRt9dmsf7A== 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=sueL6bmHylA686jA6mVhKi7yXxUHBSJQDngnUT3zNJ0=; b=EHP8gvN5geWhh7HeQKwb1kGa003fYBcKVA0VnttxHynYjn6ERQ845t1lNIe/U6xqTw0AGORYRBR5Yq3Gg+Z32SIIyeR5K+fDVb5uOp4/YN0ofgY5BfTTvoWqO3Gw2nR8Y/XvE5jRIdaNSqbQBsf95f5n2WJDrAQ+rRNCohFTNbrFzN//ciie++LffngJDcyJqnDq2nGXna7yjegbaihAGR6QKoZmPgC7ZVqkuJSjZabUOMptmNlxBNoF4Fm3bZXI4tLfsYfoF7ywmefpCYgS9wny2nblRv8DefRS7O21ruRXq2SyAbcZQq1yiB62UPk+2QzF80vLJR78cZderWZFcA== 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=sueL6bmHylA686jA6mVhKi7yXxUHBSJQDngnUT3zNJ0=; b=jfW/b0VSm1vRDNfvMjJp2i/vyUsotnmKy3AVb+hkW6K+BkjND/dPLf1zYFjcODGujxdYF0Ara14/mjKYTX9rU8WRd1AoBZ/eBYcY+5oVdV7nIqKxRizbLF40KDSK3xbjAORTGXvjF29/QLbQBDFKNFh6mu6m9WbRmdlVmFZkOXTf+5ZlEDdjDEI3r0/DBBTW1tT6cecv4bmoCbyKzLn6tX0JGdMEGPAPmKrG2qIbhnEVP4J7V95R7KNe/Gw7TuCXKGKBTnPK/rQaGjs9LA+lUg82uxfHqUIoKDyRDZLfYBG5is/QaBHwsw6xQwWmqKMTku8KjmADTxQkoNk7vv2CsQ== 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 JH0PR06MB6704.apcprd06.prod.outlook.com (2603:1096:990:37::8) 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:20:46 +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:20:46 +0000 From: Yangtao Li To: Laurent Pinchart , Kieran Bingham , David Airlie , Daniel Vetter Cc: Yangtao Li , dri-devel@lists.freedesktop.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 01/18] drm/renesas: Convert to devm_platform_ioremap_resource() Date: Fri, 7 Jul 2023 15:20:17 +0800 Message-Id: <20230707072034.48977-1-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 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_|JH0PR06MB6704:EE_ X-MS-Office365-Filtering-Correlation-Id: 128b2b5a-1ecb-4513-e985-08db7ebaae15 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 2a21PTJ2ENPFyUbGMZU2cKp9OYRbfmrptgAIAWI2121fPOaFYrGl1MnowrofZcDR17KOy+P/PLRemJCnHkFdx1jSsgzOCFGXIg5DTjbsOGaoTSjMm+CYizUEQKKM/R+jNhOjXj+ZFb7lXamh2GFqcWBSuDBKh3vtauEJx3GHB4/px+B0Jx2OaWp/9OvXOfdKAf6b37ZOS6/rupbyidrduVNEjRijOtATwUJpFknZuhnLt6b9Op8vLtCP5mLyTy/IhhWm4rzi5UJzhPUdDdyDqJ9Ls9YTmKjwVdp5/h7eRYJQ4NaTjIClHXGYQuCFB1FuccS9PuvkYOE+hZ2l2fzX1v/62bFHQT7Jdx9mlWyf0YNhDuEFU5sMBXRHJDZSzrPNGtndK+47saCPsWZowncW/qdcfcYbb+iB56jTXNmJWQmApAUlvuCGIgkzd8Kpf3PCGNsW7Wb+6bOz44V2r/kccTyesItZL3z1KM9EloGeQkenL1PVYNx6rIxiiR9VL0fwgUkWSDAJCjbI5pcTRe5uBKhPB2mKnX/FE9fehHKU05EWAX8qd3axr5m8uYV4akUQ6egHNhqGtySf2WJDsyRn5sAD6TqHOoJbJ0qDR3U6GVTCqlbTCPgVCMv1GchRHgL5 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)(136003)(396003)(366004)(39860400002)(346002)(376002)(451199021)(8936002)(8676002)(41300700001)(2906002)(316002)(478600001)(6666004)(110136005)(6512007)(52116002)(6486002)(66946007)(66556008)(4326008)(66476007)(38350700002)(38100700002)(5660300002)(2616005)(83380400001)(186003)(86362001)(36756003)(6506007)(1076003)(26005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: D+tfAoTcGfmvhqTQfLI22ECbUIZ0XxDwee6oSZ7lAj+PkogHgDL5Q/VcfZT0pGDW4Bwht3xqPFlDlFPg93Uq5srZnbBF48D6kLL3ErePI8S26LGKWMMBa00Yla4AmCoekIp48T3ntiLKK5oV+cjwAz1s+6LHnxYV9KfVMtP0mtrs6sz/5IJJsH70kiO8oWx1m+X79BzYNlwczRm/5YUhPgKvCBaznP+NRaoH/sXY10/v50KrHbeVZvMFu705nI1VEe4R1b3VE3YZeniL+nWSf5c3cd2wa3KVmpuPgYrXAmEZ9Kez310A/8shP9/tjeHEsFXjYKJFeJg4AAWzV2XoqRznEkXbvi7MBHSb71aRnqxqJTciaaGaW+BzaupJCtU3Qcf3LulglXrWmLZdpsrZyn/mSNj5f8pHHpHuRD+EPuTqFS5dvbCdT+tJgUr3PvTOP8X0kRCwlE7HHcSSa6QDzJnWr/3aN6goxSU9+crT+uJAw5hUo5IX0NX6i5QmQhdNXm1L66DkUJ1Iskg1/odmGXMND4vL6rq3opkxkpxC/D8cZV5JyToaWJVLn/2Vtl1MSuXlpS6m2XQ9ibiW1LX+B43IZ+jYbzXp8pg2f7Wx9KXjw7KhVflSuqVhM47L2i1NwnIYlBFvG9cH2MBJZwRNKqfi+aB+H7MLnunIoZOfFv5f5nO3WloT0riykxSX+ceNielobuGzkd2gQ5os3Ofoc822LB/3jyXMSVMsJx+/EkX2+vBvYhw7Ubdb+NuQETwwJ/PVYc+kZeuGHnVs0QSCBiKHBRVRLPeVGui64GaHvgTY+HRbJsS0zuHPRhVc2yaXrXJqQHvn6J1itAh6/k5EfXtMXWaHatvCd7pigBN20JwGQ9Wn7Dtx9xAJxRthbbnuLLOAywgTwvMJwvZoIRn89wzyLscePvsK/+AX3nM81nVa1A6YmS1qVuYG1//G+0a7qedryn1teTo+Ukj8qS/P2ejfDR/1QDcUmOxcYqVhca9IReV4W562eIilyjjfBcPtBLo0qnvs9YYfZPhxu/hES7jxrPDcdujxu9dKeu4/yuTRMLa5BgP8QUVaY1jkmoiTXIOzb3x17IMASCAsXu04BfgQ5AOHMRE8pGADKZzHAdP8PyQbPoEqKH5aMtJmaDNwhDBttUSt7qx2YbyOYtPAI4113WSK6/j21ZIAYYzPTeoSjdngz8/YqEz7DXuK1/+z2/Sf5d8sNtEO3Fvrb1t+MaRstdOcQbI9UPRABBkUq28ajzn1v9SNDzgUlpUM5SKqcfK9vgFTMvOkrJctBRlO8j4jQ/KmH9bQk2F9BZoiYJBqoiyfIYTKiHVcpeZqDStJ1yAGT2lKumuHexqgIr2nTHnAB3uKNZxuHH0nEoAi5TVczcFPN64/QxvIS2IdlF3ogcHSvDMGmPEuriSdANZh+M8N7Q7rxoZWqzg6v/C/30K5hRK9YhQCKYMqoi15XcHm8V+YknbmJD4vVdkJwJmrrLgH3lYWRlF7CCkcUoidXMaVHY0twOtXXUQbP5ckMywtkt6a0yr6vXHMKMrTk4cFa/VbfmJ4mLBQHLwE1OIJ2mwQ+ZX0231ve6AD0mHRz0qL X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 128b2b5a-1ecb-4513-e985-08db7ebaae15 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:20:45.7168 (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: GzpuNYJd5mTCRH9LR7wxRmonyiR6hnh256vOm697sFWCTFveZ2OjW3H+TzNQ0w0I3iuLeUWEGXhfEAmFIMEOvA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: JH0PR06MB6704 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_NONE, RCVD_IN_MSPIKE_H2,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770747082159239820?= X-GMAIL-MSGID: =?utf-8?q?1770747082159239820?= Use devm_platform_ioremap_resource() to simplify code. Signed-off-by: Yangtao Li Reviewed-by: Laurent Pinchart --- drivers/gpu/drm/renesas/rcar-du/rcar_mipi_dsi.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpu/drm/renesas/rcar-du/rcar_mipi_dsi.c b/drivers/gpu/drm/renesas/rcar-du/rcar_mipi_dsi.c index e10e4d4b89a2..4bf9f5d15fa8 100644 --- a/drivers/gpu/drm/renesas/rcar-du/rcar_mipi_dsi.c +++ b/drivers/gpu/drm/renesas/rcar-du/rcar_mipi_dsi.c @@ -1002,7 +1002,6 @@ static int rcar_mipi_dsi_get_clocks(struct rcar_mipi_dsi *dsi) static int rcar_mipi_dsi_probe(struct platform_device *pdev) { struct rcar_mipi_dsi *dsi; - struct resource *mem; int ret; dsi = devm_kzalloc(&pdev->dev, sizeof(*dsi), GFP_KERNEL); @@ -1019,8 +1018,7 @@ static int rcar_mipi_dsi_probe(struct platform_device *pdev) return ret; /* Acquire resources. */ - mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); - dsi->mmio = devm_ioremap_resource(dsi->dev, mem); + dsi->mmio = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(dsi->mmio)) return PTR_ERR(dsi->mmio); From patchwork Fri Jul 7 07:20:18 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?5p2O5oms6Z+s?= X-Patchwork-Id: 117007 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp3081951vqx; Fri, 7 Jul 2023 00:22:41 -0700 (PDT) X-Google-Smtp-Source: APBJJlENnM5L6ff/SkVRw4ygJ/GfaFttqxvYgvmRr1QGljocI3969IS6t49QWOPv+EuuBKFNrPvE X-Received: by 2002:a05:6358:2905:b0:133:a8e:6feb with SMTP id y5-20020a056358290500b001330a8e6febmr5634428rwb.12.1688714560840; Fri, 07 Jul 2023 00:22:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688714560; cv=pass; d=google.com; s=arc-20160816; b=vOzC/Td5uqy7hEV+vMOFZT5BxqMcoNQlG1iW9BMHNGkd/BlkJCbkRDOxv1N8Rjty7o z+4eifLOBpLDFd/1CKXzCurLKzRhJ3t4GsjmqKE+2lZVzKFCQiL88ZZfRHLTYeuXHD1P jJhlqFFLprdpca7Nl7dXgLb0n798rfs2JwjVEVyiKd2NsKFbucXC6viRK8NiV1EM3lMa 6cPCD6ostsYV9h/Wx9VqMgMIAXV3ECIqtjXbndWefD14ji0Z5o9sMQQSqYgoQeUXjpni Iwklmagw8gawaxqrdJiAKOnV570IhmlRsmoskgxT/IfiaoVSa8Tt2QeGCH5QleqJ9f5V 1WEw== 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=kQ1vFl317+eY3frrFY+OfM+saV0SG1asyXCxsk6CahM=; fh=OkhKJqwgmok9Uu1AW5HLWSzylSfBluM76Bb81dugc3E=; b=DbKGnt8BvkVSTvmzLnz5qGZExWPTz9O1Xn/rbr/oTFIFUuifgYCY1BmKhzY2slup9z zGKTn4yfenev3Atk/bOatXU/6ksCKilaFUJdKZBEpS5CRVDgBKdjrrPuc501rGGiLY1T Fa97ngPy95PJcV5aVQ1O9m3eCVATUvyHUe1Vf1EvOplUYgaL4q5L3iGQpKcUj0vwKkHB 3y7skOxC0HRifWUtjtw2qzc8wvg3+b8mnKXCKGFxbT7CgTHxsjiuU6jLtXhr4bUxaxVc Fdpk03UuqOM4DYNtro5tlUIZmeCu/O+NbwxfR61qLS1T4hzBxXBy3KOhGWitFPHYdmQD bmEw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=USjDjBVb; 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 h12-20020a63120c000000b0054fd504e80asi3245999pgl.542.2023.07.07.00.22.28; Fri, 07 Jul 2023 00:22:40 -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=USjDjBVb; 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 S231954AbjGGHU5 (ORCPT + 99 others); Fri, 7 Jul 2023 03:20:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53924 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231580AbjGGHUy (ORCPT ); Fri, 7 Jul 2023 03:20:54 -0400 Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sgaapc01on2102.outbound.protection.outlook.com [40.107.215.102]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E04AE1FDD for ; Fri, 7 Jul 2023 00:20:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gW4O0qdBrudZB0VWABEvJ1rvdicigp143R1RuDCTTJcdTvegGaxDttQC1HtZHqczwQaYMf+eTVip2QFk9lmPyyOiF8P8n56vJQnDegU2APAF+Q+EebuUhUC1Vnopocd+232+gO8Vv9E3VnPUYLKaobXuKhvKduT7KMxPwQJaLYx6avoK5h95tUqp2YP0wL9MkFMsR/VmCYKsZrfLpJrpSmyx1JIqTRDYnV18iaZADDNW2WmcNOQX8FHj++Uv8S7y8o7mtId10rkjDdOPHEEVmUBDuo7khEaSUsjjqvf6CF783w2Q94DF87TPdUETtdWjpLPdSW9qvGrTUTx3GxXMOg== 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=kQ1vFl317+eY3frrFY+OfM+saV0SG1asyXCxsk6CahM=; b=Dm6udbTrG0+6qSj/6Rgize0kYHmVsT0htORkpS+MoDpQqM9JmpH9dUBfUNgjoso5/FwYV+Um/yLvP7C6wmkLPduV2K+8DCjcc4mRZMS7NVwIeOv7s/vXG0vz9UjgKDFB0aIH6rIWsFF8mKtswahlgXE7HXQr9DUFlnpN9mSsRlU0UiqQsUPShv4+4nrNvtqms/POjgOSjQeI3g+L7tw7MjYzDbH23Vwl3EgoTCPANWTLYOewY/aKhbhTLJbIo5SQUu2KMNomsWlFxUPP4vXGMu+rvANucZtoACOeQudRp5dDtS6HHmPmZhx/IypnnwnotEXq5gtNyIPIVE0UJYzT6A== 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=kQ1vFl317+eY3frrFY+OfM+saV0SG1asyXCxsk6CahM=; b=USjDjBVbNkO+6jp2wObQT7RTREjlI2oRv1ZeHPlqG27B5+ue4tNKMxa3Af9yN4IAXO6d4PAoawV+CEq8Ri+gREh6ybTNGY/taGClHN8tAjsjnfh+4YeOJw/f6LFI0sjytZNBcTEOiqlTCXknsJBUP8oaUDvK9HvnWTIymXMSGKKd0QTbX/1n0wuSDBxt8yo6i8iMR/n5CsEaoz6BNd6OVdYjJ1CE+dEcu7UMTIxRNwihmRonNEpj3cxK2BTZCslwgnTtEmoJK9+O25vGiedKd4ZSemwQ3LBX9lZ0PN5J4hT1EpPsRKr/uPi/4E/sY9GQvQmlaXFFovL/OaCCE18fAg== 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 JH0PR06MB6704.apcprd06.prod.outlook.com (2603:1096:990:37::8) 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:20:47 +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:20:47 +0000 From: Yangtao Li To: Philipp Zabel , David Airlie , Daniel Vetter Cc: Yangtao Li , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH 02/18] gpu: ipu-v3: pre: Convert to devm_platform_ioremap_resource() Date: Fri, 7 Jul 2023 15:20:18 +0800 Message-Id: <20230707072034.48977-2-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> 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_|JH0PR06MB6704:EE_ X-MS-Office365-Filtering-Correlation-Id: dada64f4-1371-4c9f-a56d-08db7ebaaf44 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: /naE5KPQWoPrc21t+5tVuSCAqj12xR6KT17WJPoVy1YHQv5ecIirxZtdyyRdkZrQiPFnofWOY4pHHXYlcmywp+rBIHPGR8LezoQ0HBBVxA9/DpzrHbvWFWitX8Zui+pHBBv4GwH2urlqwXDjVNZe/+jGbq86u0dBsR4lFhFsYgQb/pmnE66nf0H4p5Jl8xG2+0vaDNSIfXLqW8RJuf+5v/5+dMiNeyrUsv/yzuggiRDpuXRNSClbSNhfjIM8K4gARVDeC5Lvr5TBNFK1tPdoqQMftxzk1yTXNf+EkY6rM4UalUL/G76auenv6ZHMOzWFohww++jaopln8lfhGFeuZNZrNvZ28CL/cHf6fE1mTdPajJJupTyofHVweOGFM4WbW6YsdSBjQjL16BF4qn3HgTvM6nzO2fatEhKbPSk+cI+cJ9xEiC59Ug5CMiYzsrq+RAxgwWrALrkFOxlJ4PnO2eJTf40G0Xkz/S1gzcktbu/2o0qYrUZQRcOXCTUiTuAY4LL/ji9fmUIGyOxqqmXCMp+tL9ONIYY173DCCxjrq5R3A+ZX6wk3XdoDdlXGVt8lwHrDVZVrcxB0AiYt1Q3lfViY8B3rKLEi1N8pg32SRXnwT+JMlc9LnGbLTnKLY5T+ 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)(136003)(396003)(366004)(39860400002)(346002)(376002)(451199021)(8936002)(8676002)(41300700001)(4744005)(2906002)(316002)(478600001)(6666004)(110136005)(6512007)(52116002)(6486002)(66946007)(66556008)(4326008)(66476007)(38350700002)(38100700002)(5660300002)(2616005)(83380400001)(186003)(86362001)(36756003)(6506007)(1076003)(26005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 0WC8alMZqZVaiuOKQWINetOvL7tzppzosIJod4/iXMWzt8Yiwmr2aFzwjsQgE95QcwJGSBXkuLYIqpHBRslQFoI6KCY7HKyU2WuC57KWz99pTPcexCSllEn7XSHIC2zWa3laG7LRsICjeY2JcFSuoohmqxGDpZS7l0UMXu8W88mp/SHyr24H8rbDqDAkfTcRPWS6KfiY2G/o6xVl+y75bykicVmYcEGsLrqHuQseUMv6078Ff9H++bU993zr9ZtniTYSulFcTo4PPuPaf6bbwPNb2C692AhX0NsmyW6rN2eiu1n8DBZAZnLksbv+aX3C1jEDHmJHaC0B80xz4NUrYAOOvDg16xQsOtUNRodLbgngK3zNMLZHmb+SiNDAhFJEfWX6DRyxC7qzI9OS3vFyOmaRYp9YjNm5C48IAMv4f9eEEJmUpwt/uNleVdGcXdsEutQg1xq6ApLZjeKiLWwIXvLpG1zOiOK1JHrCm8M9nS6uFINQrorFAr7iMEMOCo03CvjyE6vrHYget61mYvuJoF6UfjxIIntX9VyWEHlCo2mu7vdHb7VvTQxstEg/iskuXedlS5cUzbSSRY+Y0hYVIROAhPiKLG/dvcvupHpL7QD5iBXDmCe2bBkAP0Xk/0L8Bron9SmSjL1M87jIefB4HffFAgrggKAxwYJGMlWYhWAOrY+go13B3TQH1rX8qsydnIMFnfxZrELH5qnK5TJLDyg67IqtKyXGkYJNRBprY5NEUr2WkRmaVslrdE0TDp217gFX/MxTA1kTebh+kHbwUlpudTEsfaKO5iurDCQJDx/snTI5umy6HJBKKyB3+b1pEYgo2tBrr+DPCDQoUecFwyP/dEHVuhWWN0O2/2+VgpzyEbTJxD4WQQw+phhwccwLrmNri/qiqmtVV+vQ+CjNuyfLLzDDAkCn38rID6Srm+D8qxQYjCdrNTobC1hwwMRki8W2rAVW9AcTfqQssz1AUMCB2oQ9lGsG3t/WgPkku+RmSjcsLviPRk8ZuvabgGQ+iSUYWaupP/ECIoGODU/tBSHGvrXeSuxA2qK31uLqFQZY/GgeWpH2aeN4DQQk2TKCI2kLdMh8XNbmijfg+lkUamFGjq0wSbKOav4SDGH1ylgSIxpd1oLV1b2EhAvAG9YYJAtelBwjpNpqKMzVCY7IpD54RzclINT3QAWTx5NQunlrFZBI7PYXjqTh4z8Nvb+TfD58HS1LyYLVTQbqzPzeklLwCqZ5oHFi9ykvn4QxImExrh8BP6/5KBE/JTjVbt2cTcTpKe2W92VxxF5UxdwIJmvA2Uiw5+UUdaLNaAn8+4xNNdYuyQSHzi1fnvji1E1aNdSEMLZyv0kI3pvivIXky6bqYd4pLjZMMY4mCO+2GtjkJmkkk5GVDDo1rFMn5UfXe60sYDw/Ja4JafdDx4dNADbqS2i/dvVZWVsNLVM3NtETjtjWQo1ov4FIbp+JwiAAFvQko/2whG+TIATrdlG4ANUb7913e0R+TfyhaQzcGqo/4RaGthDIWs801WQMvq1eEmKeo4Jia45I0VjPUVVcJ4TNndn3EESYxzhz7AF9gE/mIkw2v1Inm/QX7Z8WF0Vc X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: dada64f4-1371-4c9f-a56d-08db7ebaaf44 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:20:47.4576 (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: IX0OpebiIjHEF46mYCy6rJtsI6FVHMwaNEaHQQMZPYOT90qaThXtAGtcUv+QKBSWvh/7CHzCw6SQ9ltOGKh3YA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: JH0PR06MB6704 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_NONE, RCVD_IN_MSPIKE_H2,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770745559215150179?= X-GMAIL-MSGID: =?utf-8?q?1770745559215150179?= Use devm_platform_ioremap_resource() to simplify code. Signed-off-by: Yangtao Li Reviewed-by: Philipp Zabel --- drivers/gpu/ipu-v3/ipu-pre.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpu/ipu-v3/ipu-pre.c b/drivers/gpu/ipu-v3/ipu-pre.c index ad82c9e0252f..aef984a43190 100644 --- a/drivers/gpu/ipu-v3/ipu-pre.c +++ b/drivers/gpu/ipu-v3/ipu-pre.c @@ -271,15 +271,13 @@ u32 ipu_pre_get_baddr(struct ipu_pre *pre) static int ipu_pre_probe(struct platform_device *pdev) { struct device *dev = &pdev->dev; - struct resource *res; struct ipu_pre *pre; pre = devm_kzalloc(dev, sizeof(*pre), GFP_KERNEL); if (!pre) return -ENOMEM; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - pre->regs = devm_ioremap_resource(&pdev->dev, res); + pre->regs = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(pre->regs)) return PTR_ERR(pre->regs); From patchwork Fri Jul 7 07:20:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?5p2O5oms6Z+s?= X-Patchwork-Id: 117008 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp3082054vqx; Fri, 7 Jul 2023 00:22:54 -0700 (PDT) X-Google-Smtp-Source: APBJJlGC/gwwIiDg8ozP7Vr1dIlH4oiFicffLbU4bDl1NnTY7o2ZNCbsLNXj78Cf78FaBMl9GpdI X-Received: by 2002:a05:6358:9928:b0:135:4003:7851 with SMTP id w40-20020a056358992800b0013540037851mr4300392rwa.19.1688714574489; Fri, 07 Jul 2023 00:22:54 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688714574; cv=pass; d=google.com; s=arc-20160816; b=0WY2/AqBFL5DGr9ICt5EivTn3SR61R61ZOdQ+5fB1lAAMc3OM7MjD//zhFvYTDVIsm FdoJI+XTQArO69kkbTdXAQ8xHGPa6ocHvCss/++NAQgbTTRGxU30E/ddJ1IX03DUDTDd TWAZlzR6V1BhWdxOQYR0BAVI4kiAT6sOh/eo35sLgrupp8w0TbiceJ7U66SmUEYNpVDk 4Nein2Ctzg/FrzeKK3vGmXbMwFe5mH7qj1jICfcwYka97D+UukyaZpNfUJzRRYGn8dMJ 4Ya7biFOL+DqWjM52gxPF0zOGZkxU0RIWRx3SNZNUh8bRNrqkZfe6udXSPOQZGAFQJen yVVw== 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=+jehaJjYBcWJh3UI/btKH4h5bBwUKDuoQfyuspv1XyA=; fh=Oh/HOE0AiPxeKVXP0lvD0UnG5r2/XcF4myx1pA2e5lg=; b=PN2DPKrffW1OkqjFbpxxMZN3ZYZz05WGvFfYaDNxo30A8zORr68eov/J/eJDbhh7WF zrHgZYnHYgfgIk7XAjmqiBC44OVJIGjuqrXfkkzE8IEBw0t2FgHHspzjMmbXkW2BKnWR hUHL/1OpK3ZYWhWYn4/LSE9BEJ0vWi+9rCrCIeFL0vDxq7EgrDCY/0+11HxfocphyJmO Pj2XlzE9R8rutBroO/qdJlj/2owlmwR+yu0xTgX4/ezUCACmIuGiKmwonpx5wnh//cGB PQ0VB6Ep/gK5pgUwtXWOQ5uu8arlN5jGMJiYofaqcCj0c8Z7AwOkre8PNBU/TCA/bu5r znbQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=C1b75g53; 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 l1-20020a63da41000000b004fb8abdd188si3213432pgj.115.2023.07.07.00.22.42; Fri, 07 Jul 2023 00:22:54 -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=C1b75g53; 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 S232036AbjGGHU7 (ORCPT + 99 others); Fri, 7 Jul 2023 03:20:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53930 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231732AbjGGHU4 (ORCPT ); Fri, 7 Jul 2023 03:20:56 -0400 Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sgaapc01on2102.outbound.protection.outlook.com [40.107.215.102]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 194561BF4 for ; Fri, 7 Jul 2023 00:20:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lCsjv7e/4dmohNc7CNFqXvZuoXtQ1U1SFsgpBYDIwr86ggZ7Ynf4EonxXufxWPO8joavUGENcGDE6T3B7PF4zDkKYtp2TRXCWt4ZKkCHZNL4omTwPLY6MRnxwd/Zj4ntxTlHg3scIe7owu2/5LyU/SphAO0eb/hhZr7TItXqiLOrXYmz7CpAGOum1IlpntKIZsuqx1dJj7UlKE+W4ZUCKkHXqSHE53hHivY9SeA5UtioCvf75+Hf8gdzK41zQlfwJxxsHA8ttYKHu93KL38oPQHAnyu3Pc921nXp1D4HD5R2J3cONwRfQcP+TZPHybQnhhMd0NudgI96av6uaKTQeQ== 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=+jehaJjYBcWJh3UI/btKH4h5bBwUKDuoQfyuspv1XyA=; b=m8w+XOjpWtiAQG2I8AMNPmtmZ1kx9CcQBkxDAsG9JAWfj2lh/hnJjfpSz9qYOyVY5kopFQgZtWmV4FNBxvcdOc0qN0K4biZSkcGgHhY+qpdEWERxUjr87fFwRM8QJmZHEKko0Fet5q9PsPrJDLqyv3U0u7nV4mLW+M+DZCNUHIyUGjOcQU20qJF2A0syz8YxBskWMpHSRt05bmPoLaU5uh7UYrm42cu/Ba9mIIjQ8QN51vrvfbYNa75x0guNZ7vL2GSfqylJ9PtAv/c9DnEHgBY9e18y2n9RFbGudc/M9mrP8Yb8+c5Z9ISlyZze1jh+rCNk2fRfzFYzPvjS3z322g== 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=+jehaJjYBcWJh3UI/btKH4h5bBwUKDuoQfyuspv1XyA=; b=C1b75g53oCnrcuswle+ke6Np22dkUZDOef1RRB0LxQgo5q24QzS9XrubC8VP5TbfaAiR57D7nY3hydn8KDi4G7qCKl5+4J9YvEEs92IXWIoZIiTqMYFM4cSndoAprpaXUOwDc2KkHaANxAHrfYzbEx5zDpdRD0X7oVxmXmopO4PW8n0NqcNQFe2UeW5WWSdr+HYmrNTGvA3Osxwh3FIJ3uDpbWIROc26yBDRNLJ1YvJJ6xve/J7CB5P+1yeJ5g6e3G8ssqGEVCuUEDHMNFzmew1pJsk8Qfpymtrgb/TGAva4gwQVrfepHftHIkV/3EHcofHvum0AeWHIh/P5+0mldA== 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 JH0PR06MB6704.apcprd06.prod.outlook.com (2603:1096:990:37::8) 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:20:49 +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:20:49 +0000 From: Yangtao Li To: Sandy Huang , =?utf-8?q?Heiko_St=C3=BCbner?= , David Airlie , Daniel Vetter Cc: Yangtao Li , dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 03/18] drm/rockchip: dsi: Use devm_platform_get_and_ioremap_resource() Date: Fri, 7 Jul 2023 15:20:19 +0800 Message-Id: <20230707072034.48977-3-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> 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_|JH0PR06MB6704:EE_ X-MS-Office365-Filtering-Correlation-Id: 4d8e4c58-229b-42ef-232c-08db7ebab097 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: H4efoazTjiPW/9Uw80GfNShkTo4RfmY2YPnZCa/fhmJw8g9fXchN9xuprtMFcu84mqZa0Aw9bDj66vSKPFDHxRYXmJxauJTFtSbzzvRv0vEhnj63NbJiuC9HpkC86H1DtTYgmt6dhmPnxAphlJwjSDrdUY29Fdg2lBiBbDcsbdIeF//p4JxX2p0ayim415ySE4m3WzeNKSjmg0VNM8bZxGLZgJUQtjVI5MNkzrlWSMP72C1snGZxEQYWMtRMAWAdzT5epNSXPXqgDigL9gh88U5XiVnEDultzXLXmYzlD8UA2sUQVjOkkTtEGvu1tfR/Nx34Qc2SwYaj68k9OvL+rZRMY/6bxNg9KnRreraaVQes3tHtLI/LdWF/HEmVQzR2de+EYbEpiGch32931iRWiuYEdiL4ikavSAGunzGyOZQL6S+eENPVTD5kqO40ilW5FmUHRHBsg6EpaIemigczAhz07kZKpkbZSWHRHXepwflGoZ2QN8Nsn4pT/CxT1Gkd4rnDVuI3iVNo5rGPuLqqfDDKoOH/RpYV6sEQIHQhi9q65UBInXN6QHxxaT7XVHYioXqQjkPMTmBaOSMGqxvbI6UK3FcUnDpZqOna3OGUGGtTjYHJyPm7ojcS5LP1OoOV 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)(136003)(396003)(366004)(39860400002)(346002)(376002)(451199021)(8936002)(8676002)(41300700001)(4744005)(2906002)(316002)(478600001)(6666004)(110136005)(6512007)(52116002)(6486002)(66946007)(66556008)(4326008)(66476007)(38350700002)(38100700002)(5660300002)(2616005)(83380400001)(186003)(86362001)(36756003)(6506007)(1076003)(26005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: z3a3J8K5/8u5gxTti7VPTYe3STyvp5AVClI7gPaxd9Od/HVeCA+uZlCWqQVNKptksGLtIQHxgi18MIy4P9mYbeVLUBIG0LscDNmkpQJDcphTtPOH/x2yNA8NWKnl6sfVfniNoLX6P85ogMCS7dNjGn4SkIJqLCT7D3mFAL1xzZnPTN4GvTQIak9sepGMBESTtZpLaiACZa5TUTq4JoCeMd4H9noZPPpH+v5ELKn+wCKRr4dEiB9s0cW0q64pvLF7TR8LFSEc58T3WZqlalzHceNghVthIX3eF9Sjowc1LOrRCk7NYVOk0pGhlA17oLgW0sUw+CFVPzq/pddpiyMlBGprPzfwqC0PX0YxfiyZOi6w+nB/ycn8o1WViWN3CekUa8i4MewUvpkoKbLzkBpuC8efGANQCSYRrm9lk9+OTP+KcO4TT0dPxoKnu8RXXskU6lT08i+/xJd6Tp6tS5GHOM9iiwPb2O7vmrzFU57o1p8F/ibUodTwndd4yqFGHYFN+WTbMLAuyWkCQvGlAUdjK/BYBngzg6mLZ/An9bTlAxwvai6SMQ62HpinT93gpacsK/GVirAkj/MHip6MUd4lKLckC8A4otJUTFUofWZQ5nxNNJG3Wr1oOjVqj6osHDWuRQg+B9TxNwnezu0mhH6Z15DHQsUGslwCxk6b0dLlVL7bb9dBqNcg4iQSTPuy7E+DlvQoZMkwtYnrpZftIg5SV8Xby5r3JjaMIDYnUO2kbVX3Jtk9+xBndpNMZDn1tSsmp//QA4s3dbGU+I7lj73reo97AIZKkUzO+ZysTEZT26VwrB3n++nuiVZdTf4S7sG0luoVCCvHnH9J7hPmSgzCFO2tOHpvzr/lVflvZtvhDf8/vmlm3XvNFTe4e81PMG83m/YTPPDC8eDC75KIWljKZy++39yuneJmVJc1RCSweadID9/wPrqbImQc6dN/z2082KpKDqLEyZ+O7BrNZIs3sN+NRtjgdnzz3AmRz9Xd/qT3JWuGXyeloIwmCMiwUtUuobWi3OQOS+DR22Uyf5mcSA65a3e0VuWuKPSKZl38zcv7foat7lpE1Yca/VnSI1597ub3X8nPqzMKtuzsv+WGm35dJoUWSI+URBcBpLs8zmmXaQpqjedCu42M1u5ZfgnnvX5FVk8QOcHv2DBQqcTJoRwWQ82XYPP9fABlhXM43vpIXdcHB1+9e8TM93IvFypjtEw6hR5q0OUniWCM0DKWCrDHhjospj5UA14mxKD/9stFL82lFbDfejCL6dKlg3ukQnxj0zMBZqZDisah5g6LSMZv0HRSfZWhAyPhvtSv61SthYKZx51EL+UCqnksB5voU7jT7mmfyChfqJBuEVkl/WY+WsQu4omZwTzRnhzNjL3xaTK2hoHf1aFYvPN7B9ZBXtO5FqCRf4A/Lr6mSFvjYjopBdnXJLQdaSqI3KziZJxS+cSFORVhjse268NF7eKvaOxhMENyPRvomFRjY7tIQBST5cSlR3qJnJ7eQ5oD9a5cPp2HCQLTtdL+FVyYMZPsIuBwSyxWgA9fTOL/dpnXAecBDRa/5czmPLQdFYde6KWNj3VTQtUG7TYZ1+acD3aL X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4d8e4c58-229b-42ef-232c-08db7ebab097 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:20:49.6774 (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: VT/nuP5sWpW6LNVis5bATFb7m0R99s6CgJQtMbzXatH4gOXAdVddS7nt0LcNXklN8KU5hocIJu/kunDcwgIYew== X-MS-Exchange-Transport-CrossTenantHeadersStamped: JH0PR06MB6704 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_NONE, RCVD_IN_MSPIKE_H2,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770745573985521739?= X-GMAIL-MSGID: =?utf-8?q?1770745573985521739?= Convert platform_get_resource(), devm_ioremap_resource() to a single call to devm_platform_get_and_ioremap_resource(), as this is exactly what this function does. Signed-off-by: Yangtao Li --- drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c b/drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c index 917e79951aac..ab57df7c6eab 100644 --- a/drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c +++ b/drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c @@ -1351,8 +1351,7 @@ static int dw_mipi_dsi_rockchip_probe(struct platform_device *pdev) if (!dsi) return -ENOMEM; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - dsi->base = devm_ioremap_resource(dev, res); + dsi->base = devm_platform_get_and_ioremap_resource(pdev, 0, &res); if (IS_ERR(dsi->base)) { DRM_DEV_ERROR(dev, "Unable to get dsi registers\n"); return PTR_ERR(dsi->base); From patchwork Fri Jul 7 07:20:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?5p2O5oms6Z+s?= X-Patchwork-Id: 117032 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp3097440vqx; Fri, 7 Jul 2023 01:02:47 -0700 (PDT) X-Google-Smtp-Source: APBJJlHv03Z2Z922tniB2R4E2y+jPYfiOwE04T/fCBkmsn+bOP3PwfTm83/xiRGlypNt81ScGAAw X-Received: by 2002:a05:6a20:918e:b0:106:9266:4448 with SMTP id v14-20020a056a20918e00b0010692664448mr7330153pzd.16.1688716966404; Fri, 07 Jul 2023 01:02:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688716966; cv=pass; d=google.com; s=arc-20160816; b=IHukmTO3CT3jDmaaIb+TgfGBVcAQNTDH3tmnm5tCfEbppZZRyoWartsmfJ3qAQk3sn MZ+cuWjj4y1lvYz+W2hKrav8GtSl/GkXcWuqBmzY7g31OJRvAMddaG9FNYYBgD2Pt2WE 9v8TmX/qYwRJwIB78Wjw5MGsqfqcHCt6o6VILXZptf0bPFhDXsVuukV6SEI69INgbLUj guvykszyr4dPpILPKkqJTRFgAgxIf+iFaAzKPVgur9N99ii80IRYqQh2bWsm+e43yjsM hOcXtWibvF8Xmv6iyvCnt2jMX0e+94wwyNzJXyCfWITMtO3aUKWUtqt/1QvrWB/iePWz AIyg== 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=U53GrK4HMU+yOG1VO8I97Llchu0XxnMMDOHpjf7xqjrcdT7zmYy6wby72QFFswyUUZ vcYncNQhkEla0rUL858WPj8eYnnnSxM1MMcBfd2w/5jiR81nGJO68t8CR+e9+2SshrGN /XBFqgUkT1za6O+oul41Y7r9/oX3IO9+NbnxywDDSVmYbImS2mAkftw1OEioWaahuUSj RSj6wt/hoWxFPb1LszTDjaz8OPwzD3DNV2aQZgx/0Dd5jQX7XkoDfJXaB8cWpb4Rt8yf T+h9t7VeB/iNCh+s999P2RgWDN4DidodYW5MJm3mEXHjrfd0VcxsH+2rBFPr5z7Bj+T+ 6T1A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=jJ0xcsTP; 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 g19-20020a056a001a1300b0068267c56811si3374690pfv.167.2023.07.07.01.02.33; Fri, 07 Jul 2023 01:02:46 -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=jJ0xcsTP; 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 S232149AbjGGHVD (ORCPT + 99 others); Fri, 7 Jul 2023 03:21:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53936 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231925AbjGGHU5 (ORCPT ); Fri, 7 Jul 2023 03:20:57 -0400 Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sgaapc01on2102.outbound.protection.outlook.com [40.107.215.102]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3E0931FCE for ; Fri, 7 Jul 2023 00:20:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=eE8xD52xfNRjYdK5WpetTWxY/90jw7nqA55pxALtLtji1WdKPp9u/dF/F+iSpAmAe1qQTKwHm/YkBRfZaUcBS5FnhwWePvoc/u4EHXm1RBmgrEcsJf+XtJaERrgRGSe/Y3AbsTO/yNd0qkejps+7OqxZtHnsIw2JF1VzSg7RBWH2XDimlXwGu9dXC4n929M0GeIp1o6U9D8nW7J44q8NJHgg2zTN4ua7XO4nM2srZ31CQUEUAsrb4W4iULo49UVlGXe5X5TM2shHSJFXRX689EBI7pti4ycRVprRuN+M/eD8gh4YMwGvVwRrt1mDDqJGIHz6Y63zCwDP+LtYr+7OhA== 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=iM6lFHbVt98QNKTjZkXqJ2SyIg0DNxHFuMSa/b3Bsx8nHt3VNpNVuFOOU2FVYLaGtR+hqqlw013W6jJClp6w1K06U9IEgpJyGumvxDqJvu94Jsja+J8yMvTl4srFFZK+zIl8MkUmRqeo9K/4fBFZYpjp+T1rPkRs36l4O8zG1IfHeY+Ckt70W9sDxAnhe8qLkP/leiYV+BjQK8Lj1TqqsiNLmWAA9QCiFDo0JB6AphSdPbXL/E0kCuPgCSQ5av1U7csX87MDoS3yEBzp8thhhWx3j3qyRimxrkm0HzyYMrrCnhY3pHsEL+W5tEitc9jQM6+7u1AAndcQenvt49JzRw== 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=jJ0xcsTPuyAl2+4C8vH6CI/i0Wxa8l3gua4OmrfdgJMd4Vknqi8MzJBrAJpy4uB7vtiTHSC6cWeRPnsoJ+3nD6XTCc1VHSRHOTmfcekzMuBpm4EWHi9zU4gWuP2nn7swUrS5qF/wIjkRmxisvO8s9QU7/QHRvI3i5ft3eq2A48aN+laUMacLwqSzefQSI1VStIBJ2Ne++uWx7ioooFjDgewR8p+14kh6kQkWzKmQF9ZC5wMeapZehxHV2bWHu6aCvhusNgXQtpjDnGHDa7g8HtBYJmaF/3RBms899p9se2U6+dQdbS3ltPgt6P4yin8lIeJ9asXCdVlji0PwhPjZbA== 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 JH0PR06MB6704.apcprd06.prod.outlook.com (2603:1096:990:37::8) 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:20:52 +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:20:52 +0000 From: Yangtao Li To: Xinliang Liu , Tian Tao , Xinwei Kong , Sumit Semwal , Yongqin Liu , John Stultz , David Airlie , Daniel Vetter Cc: Yangtao Li , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH 04/18] drm: kirin: Convert to devm_platform_ioremap_resource() Date: Fri, 7 Jul 2023 15:20:20 +0800 Message-Id: <20230707072034.48977-4-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> 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_|JH0PR06MB6704:EE_ X-MS-Office365-Filtering-Correlation-Id: 74167744-7743-4ab0-8b89-08db7ebab1f5 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: rrXY8AJD+E3MGRDiXExRLRQRl/z6KnwxNoM2J+Ks+GRoemGREsaGOZTE+b5QcS9TS080LlCgFpkn4do+UFIxOi/M9iVccvLblY8Kwxfxen+/v8Nu1DSzq2bKXdFTxHklVa4lvySZm3IwRKwx7TELDO2pVC2R20pY1w0MCtCQVDFgZS9OWpJF4RVH0gErnK0yYDtOnLiBtGwsSRDgXvqzmjelddlJi/2a55KKDazu9eS/axbuyrPayAkDXCxcbDblQiGh5QoWNhWxzQGKVHdGZ4tct4v7Lyizdy1hbAnA+VELIisf1FqicAoxEwglpBQb6GnruYYUjdey0EtMbJ1OMBoFKOMHavoAp0a76JDILyKj9OJ9YChj5TvCJd5xSgD1dlERpBVqIHQsSEF+4PK0Dv3jKTn/fDLqu+1rHFEy6Q72Mf3SSWtwHMRUYHrjRPTv/BFmhRZRQNLlfWgW7ygwzn2x0ZyPzdsBiqmrspyu3RDFGxZkOUOGiBvE/IiHThrvPnH3RYURlQbdLnorz6KBtQR0LLbpitBEv8/16wQEVSulxnhkm73FPEmsMcv4U/gPZ7fKYMglwC/cEDQ1MQ8rw+G4LYLsCpAid7CsHKz+ZNvWoOWsenTw1msqdwr6xwhw 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)(136003)(396003)(366004)(39860400002)(346002)(376002)(451199021)(7416002)(8936002)(8676002)(41300700001)(2906002)(316002)(478600001)(6666004)(110136005)(6512007)(52116002)(6486002)(66946007)(66556008)(4326008)(66476007)(38350700002)(38100700002)(5660300002)(2616005)(83380400001)(186003)(86362001)(36756003)(6506007)(1076003)(26005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: M9HFsEbksU5XXYSXRqW7EDoIJ5IL2xMNzAj5alnpNXJnYNkmE3Oblgm35kasDMAVlBWKtbW/VK5Ut2LssOb4A+DZzFI9wqq6VJ2JgVDyausih/hJgtICW5BhnizZuvpST0hzOfsamarhSZZkPOH04SbEBSi4XaGIbekCYxOuu+cKn4IRXTMsE74FPSypnTNPs5JqKdml+Uyxcob42zOW7z8dNLoeVUAty2P85DHR3M94hlsDyCu+WZRcjoAif2DDTaB49sqGQ4BgNe0EixCKF8Ixu+vJkXF8qJlK+yTDO/3CSP77oyJD4biAu41B6lbx7ruVYaDclLDSIWIqs70AzfDV08Fnh8CALo3pCiVvnoQvDKTnh2q1z0TTkidGdKAd2DRSX8bECZ7Z/Fml6ZlufuH++FAnQ1v1Z1HMtCrCi7EWZBoFDYVvDwJ7ZgUjMJK8DXb6022Q+hJR6uDmW2Da5EpG0rpVafnpEhte4XRRbMkgeSsRCUExNoDnDekcIOvMwrWddEsUC0glgnlNnEWMx5+h2VtRIzsnuu2apPSyozBNtZefxjr/wedXpKC47bJ1fTrosZtjZ3EApKOrQMALYjL2isXZKqxeQsV0KLaTSNIlgYmMD8u0QT1bpP7fwnUMesesoXpg9usLe+J51F9EWMSY4MTRsT32r3jIJaqBTLJU+U5xf7AFsENd+ETOSie2EM2naxOfadeiRfq5P5gLu5Eao7Fw/0UcwdUvOg0t1bp7bJuKm9ZAipE6OLNS7HcisyS89rAl6vNIySMff0S+euPB7eMZ76GwmDIrOmoWwZloSAlIfw8g7Uvmjs/BRzklmBsTd3kKTw3bL3kMghDaLWBLWPVUqFPf4hfxfW51rE5cgHF21U1W/E3vE1gNXD1cwRjihwYOyurc30xd7AhRtP73jCdCpSxeEaxlgusmsZW1A4r/GVkMZ/a+ZBD1orYTTdHr6vstmnx1NsrLpXjGGUlgUxbSqIfne9JzOtKo+qW5uCzy5p0BFrgN5ox9qAozeMoB45c1JPC4aq1DYVDibP0zAVulWBfG7MiAabpDAAGni3lsH1qPM5jj50JOHcxr2iLyfZsXR0AJI7Ua7w34OTHCX/KgFItDM1sHUfa6CeZcXs8ypEoZIjerKWZV03BIMOOb/5NPhWwZUgzPAbCtB02QK0VCCuNaUvkJij5XCQCFUM2Aq7rBKdpTZDq3Nc5SO+xKI2QZ82iClls6u5K45kTA8IORKvBF5H3BiVhXrfM83axpF2b/VjQ9JCfr8mQAcOIY7GBco8ovAthPC26tG+lhZFUP/3Sc0W0qvw/kgCx+mZjBEHMw5x3Qx5GeOw2ShIlTUsg1QPUm39yzkn3AwQ1EQtGU6fT8yL0RmVdL9eyR+USQOoJcvFrnioaTlcjbgEaeyCtnCz5hJ0IvQ0BgV3WdIUw1weuCsKFCFnuUI+hwJQakwbmsCKAvYYuW56Kn7SAYnWkYskyvZIExh7NzcVwqQc70YGOdBlX3KQKHbE3/CSFkLego4WdXT0Fsg9L/drhKxNbd4pWlZD3W1X38MzmDTeWSViehIuwI7LpUrIPvc2sAjHGv1Bz1LvdDCIR/ X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 74167744-7743-4ab0-8b89-08db7ebab1f5 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:20:51.9936 (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: ZR4xzNm5bPZnLBfgSCdvPCvMgZOJF1pb2nYL7xghNYYHbDUTEY7sHbfUSjDUxpoHp9U0ZegIGhX7anHgNdme0w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: JH0PR06MB6704 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_NONE, RCVD_IN_MSPIKE_H2,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770748081724997849?= X-GMAIL-MSGID: =?utf-8?q?1770748081724997849?= Use devm_platform_ioremap_resource() to simplify code. Signed-off-by: Yangtao Li --- 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); From patchwork Fri Jul 7 07:20:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?5p2O5oms6Z+s?= X-Patchwork-Id: 117009 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp3082246vqx; Fri, 7 Jul 2023 00:23:27 -0700 (PDT) X-Google-Smtp-Source: APBJJlFmgWxTYFJvvTmxc09rDTQomIYbVkFGMeA5BronjfyBKjaXPWjhJpVJ0ud0Vw3BYAoy+gZs X-Received: by 2002:a92:d9d2:0:b0:346:e96:7cb3 with SMTP id n18-20020a92d9d2000000b003460e967cb3mr4678089ilq.2.1688714606765; Fri, 07 Jul 2023 00:23:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688714606; cv=pass; d=google.com; s=arc-20160816; b=DxpFNzqzVZ6kcYNwlBJOYxZKD+529MNEiVd3Sh967k+7AJhsObRGaifC9YkH3vjeNW SqeZzNWTKVU3KGiaybwA/onjBS+DOnQ0UOr42Q57CWKc5LC3jzk8X2D6WM+ckoO/rjB9 Ky+QFuHH1WUIrlQyXsl5m8DFnrcjkGXz4pVOn23ift6JT4soBLtJNC+lAJ0X3FE8rQlO SxPL+0CK8LQbVL5r9Y8JlCHaYpv1X5deDG5tjAz8dXindYS0Gn929o+ZMq5hxWQmuaR2 BhOC/9z1/ndvhEKSYHzU7H7nvEk9vUIhmoW/wuIILU0DnICFi0hcSOR3dKCNXKrR97LY aUtQ== 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=GJZBSlaW2G6WCkDU5NYrFjf3UyvJxq8V/QCqrMhiABE=; fh=WTFhmzzhsO+5Q/8VFH9YUS+fINvQqtxHHn5A5T9J1z8=; b=NTn1hC0OsVeh1U3KhYk8vybENSID3Ubf0RMhBXuFTlEByc17nHpjVwB/K7w7gKVg0J vjGzNBbU4zku8woIvGK3Yptv4yVSO2ErWsAbmYHs5mvbAyGwJg8bZ5zoinOgOQO9LS3l No50R5lvsg1hKFYeVhWUe8ywLj2SNKIC3e053rXU03dQfh+1QcFaCAPogp2CZ9spJ3ri ep/nB40dYIkmyw6nRDbLeUfTz2RVaKxQwZQLiOuDyv33ZmlXWkq2YqN2Gv/t+3E6PXRJ afe2v4Y2uXo5YifzUx0x9CJtYwU05HSdDQ4EUDPap3ljTP+b1gmLnfhd1eNQdOjQZeh/ xHiw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=jUtq8vDe; 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 c2-20020a630d02000000b0054fe7642adesi3121369pgl.790.2023.07.07.00.23.13; Fri, 07 Jul 2023 00:23:26 -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=jUtq8vDe; 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 S232248AbjGGHVH (ORCPT + 99 others); Fri, 7 Jul 2023 03:21:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53950 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232037AbjGGHU7 (ORCPT ); Fri, 7 Jul 2023 03:20:59 -0400 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2137.outbound.protection.outlook.com [40.107.255.137]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 786D71FE5; Fri, 7 Jul 2023 00:20:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bc5oUgqcqAZ83+kPq9UOp6pz7/+5OELBswLvEkEScDDrZK0i3c9N4IULuzXw92nyXDg+5r6EaKH5UurK4J/A4lndJYh6GE0UM7IuXoZbS+y9TGUvkoTvh4QOUWM8+VqLVFxuCRWdRmpRduhKRdke8DDbe7Xc1eSRyrngmJMX1nDL10VfAuj/YPTAbTYcC5gX2NMvLL0LSlvWEJPhdQERkx0dTmNVpaj8I/EPhi27CQEifXISq3QTsCvlaBIZJQAP/BA85ajOoJ9kFOWNa51Iz3MomY8d2VqmVF2iq33i51QZQ5bOHKjOuTp5zMcHwLjiLwrBr2kgrJsyzYXUfAAi1w== 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=GJZBSlaW2G6WCkDU5NYrFjf3UyvJxq8V/QCqrMhiABE=; b=FgkBYUJtUskvaqGrInCkKefcYJIVHiqLNHnp1TvHh5Fu+RhSc42f0ELCxqRYQiaooyc3k6L8HDx1an8ssMpQn7sUp2UwljtJ1t5Rpgz+c3VACrQPJFaRy9GJOi+4VetaRkCWd0DqRnul6JGZ/6RT6Hc2lFDhasa7oqGEbq7838suq4a4iUNd/VRm/bqRQSDyTroXihIXfMDs5XMSbtxAQ0SPB7iyemyv3ru/kHFw+j0BZ1A7bi/4bYnHO/sWVTngxbqdgQGSM2Gg4Zq8TzAp7+sAszb90RfjLLDZA+IQ0tdMdFqmKh2qDxGeqgbXWnwELUmaPCuSJKw9mqZhjL3Jxw== 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=GJZBSlaW2G6WCkDU5NYrFjf3UyvJxq8V/QCqrMhiABE=; b=jUtq8vDeGbrJBc3IpdQ5nx2hVpxevX3FWolJL4eQj2Mpot9z61ji5X1uMz133M/5rNeibbNy6vU7i6+W+KZsr4rJTuKuvcVX9+32z/0sl7cXcu17o1cOjcogOlw8vuIdDGqdyQt/+oAVrLwYfQ7vuBqXRLXbHW3sU4qaahuOnlPXGyenNiyUGu77mm7bcTRfRfSTwtHhrHNJK8ZJf3mVevX6yZ3Jwa9SqPUnGQf0bxPnhnjlsBTdIcR6Bb2zBpqJCijHglCVC2JW/wc8umObVaKVUIQNdFYw3JZfi2VucpaK3EwcbrvUpVgMJcZSShy50ukcNFVhpWk+dc8Hr2fZJg== 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 KL1PR0601MB3954.apcprd06.prod.outlook.com (2603:1096:820:2d::9) 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:20:55 +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:20:54 +0000 From: Yangtao Li To: Thierry Reding , Mikko Perttunen , David Airlie , Daniel Vetter , Jonathan Hunter Cc: Yangtao Li , dri-devel@lists.freedesktop.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 05/18] drm/tegra: hdmi: Convert to devm_platform_ioremap_resource() Date: Fri, 7 Jul 2023 15:20:21 +0800 Message-Id: <20230707072034.48977-5-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> 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_|KL1PR0601MB3954:EE_ X-MS-Office365-Filtering-Correlation-Id: 2a10efd5-36aa-452e-f731-08db7ebab334 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: N6uSwssmNLrorKpE5Y5NK5ssX5pynBB5UBiviA9SxfvGHGFEYF4uKmYxCSFYIhsBr42nxrQ4599kvMlxzEz6JRjzVvW6hklUzyG/wADr5yNiCxQd/lC1bm7/qH6bq4kn1//tqp6dZErFp7PcQdq97bRVJrQpAE8Tub4gJaE8Hg93P7JdSzqLC0leBEPmUnK8WX+Er6hai0Pjjp7hiwfSegb7cgqiHnIzdD+hjEhcbeFWbYA0YaxL9PRYHIbLjBvbJSMO8SvbhK/gtOIzHKPKlG3amumOpYIrJyQOHp/pnfSfYd9uLOIJUeKwO15/ZLyc3TsouOiH3V4WaMUAACayKROB6Gsr0L3bMoArsVpjCfc3rD+K25GkLsup5tD8v38RyuwAWpXp0kuObBV/ABRc5fsFrtC2zpHqHpUQtQpM0PPsScZQqyy6QTy+dWAhHLnyfJsrouoK/3bhPyPhNshXouRpBwgKCMKnxNLUgeLqo9C2qSCBJtdrtVMOG8ZACRRf58F4EoG0aFwz8b0KOfmMyVBT7tbKGdu6tSToJG93HiHJLZrZQPcdDAN/JMRx3Nd5yCW9n6yBLCaDar8+oi6u31xGerd8ytTG1X2EA82SuyVV+0DXIvBqlkanYDCIUu8u 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)(396003)(346002)(376002)(136003)(451199021)(4326008)(478600001)(316002)(38100700002)(38350700002)(36756003)(83380400001)(110136005)(66946007)(66476007)(66556008)(2616005)(6666004)(8676002)(8936002)(6506007)(186003)(86362001)(4744005)(26005)(1076003)(5660300002)(6486002)(52116002)(2906002)(41300700001)(6512007);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: InnSHRoKe9PLJvoJzLb6mHYKk98o/sAT3SqW4h9iPd9OqR9l+lqVXfaD6joGl6dfQMRAFigKtCZG5AWtLxDTWiUdouX1VG2ztQHhOW/pPweN5WqMUhIo9CCr2ElWQPPlOgj+6kGbCqNQkuHskTl+oA4rUhCo1koj5NUFJtopo+UpxOdajP66Zj5CdQ7LtHrTuEFHd1NylWKaghu81GgR7rQbg4BgMl4fokX12rxxumpmh7tNWQtrPEuNKnSLWAFa2hJV1UVZKgf6K2ezeEs/UMTs9/zJCGCklKWKIaH14/WijwGL4nv7mimVulgbwazbeInmmwTMUTwYikIJfMjMAAluZt8qzHNwvR7dvTLWLa8E8Ru5DcQwGHYHdedt+f6rUCOky4CTOj1OTAkjLCVhinpe/ZQ1d76d8KMDqfznygpuVzyxg7/MzQ9RSI2Rzr9GcA7A/tVdLc60dnwW7LNytMkhD549kZV1iwsFWk1rQ7x9sk+LQeBybwMEzT/SEdXrxMMKkeTd1KuVzkc0iK3WcG9q+PGP83rYzlEkE4xPXKCI6cUSPd7GUjFx3TPs7LAyYUJaZwJwU0CIJUvKxrG3J1ODDUNT0gNr9tbQtnvLp2uyUny6SYS0YRjTSzrywDXGpkXCxUbcW1j3F56Ds12jfKAiK0AnwOFZFEUr1SQT/v/5n351XKRKpq+u3a+NaOQCT1H1dnbKq6aUFB/6cVvSjknMYrB6ha/QYKAtfuc3g2qRkUNO1pB+1NIHFHlkd+2mUlS5gJySBwPhMSnPDe/hRYUWhOgYWNQznX7I8MyZYr1A+NXTI3twi2sYdTrrotSNG8/a5RB9mFSAvGcGJAzbgg9r54AX7h7W8LW/Zced4moGWrSrXmzOpIS6cvJ87/d3if/DVm+ifcCKvBTzWLWiKlM1u/Snv7EKYkZ6MCInsN9wRUpJ3gyfQAA/7gtamfL3oC4rsgnQLQ4KSEBFJBLwrlth/9Ub1luOba3bKEIehBlPBiEod+m1vl52bnG55FFlH8dpRWoGo8GbxpIo3v9P13NvxGqxYJWVHV/CGub7eKVGIxeZJyuqDTmqeXNUwThjNGpy8NJLvIvZwJMQemD9g8pKWkBTTBWAl/ldAyiEeVMlYX5pnAkNjBDQDvccJZbzlNzHeyp09GfGdoDwhV5wm723VUnEuS/QGKUOGlYFUrhQMcvmdpFXgKGjr/jwWQ7B4S7y/TKLZ/xLveOmp2z91Bd7EPHdk9Hlc2AiWhTDDa24YlYb+t5Jdy+IoL8jXotgTLnNk2inOB1RKDq9S2Jff0u9ydpsDqQQZWxNu4Ek4vdoY8Tau5Ke7u3C179GIBYI5hgs7qEbfGA3znmaxiPnDf1fGo+EvdwUby00l72nojHLBAkYd04/dcsj0ktjYv+NDHyjJn0ujs6cppt4+8Gq9SMEpFB23W2ZugT8Zmz8vdqULND0onYZqGcQLEd8jMTkkxI2v9Udj+4m+btG4+GDQWIa0gB4tYiMCrvCH6yVr33qTfLtJ+38ef3HJvqUnRFkIjmUaNduBhEmmLbvVHz31e9UUCPfmsU3Dol8vBdudvgqjxDrkTNQV+mIpmkOpsm5 X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2a10efd5-36aa-452e-f731-08db7ebab334 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:20:54.0794 (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: EP1aBnP2rmWLK3ckrNo+qnUFKt2XOoSkmwJuav39k/CWgIaPCwri6IR0oia4ky+gfwNZAouEjz17M7d8S2sA9g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: KL1PR0601MB3954 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_MSPIKE_H2,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770745607673766796?= X-GMAIL-MSGID: =?utf-8?q?1770745607673766796?= Use devm_platform_ioremap_resource() to simplify code. Signed-off-by: Yangtao Li --- drivers/gpu/drm/tegra/hdmi.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpu/drm/tegra/hdmi.c b/drivers/gpu/drm/tegra/hdmi.c index 6eac54ae1205..f3a44ca87151 100644 --- a/drivers/gpu/drm/tegra/hdmi.c +++ b/drivers/gpu/drm/tegra/hdmi.c @@ -1769,7 +1769,6 @@ static irqreturn_t tegra_hdmi_irq(int irq, void *data) static int tegra_hdmi_probe(struct platform_device *pdev) { struct tegra_hdmi *hdmi; - struct resource *regs; int err; hdmi = devm_kzalloc(&pdev->dev, sizeof(*hdmi), GFP_KERNEL); @@ -1831,8 +1830,7 @@ static int tegra_hdmi_probe(struct platform_device *pdev) if (err < 0) return err; - regs = platform_get_resource(pdev, IORESOURCE_MEM, 0); - hdmi->regs = devm_ioremap_resource(&pdev->dev, regs); + hdmi->regs = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(hdmi->regs)) return PTR_ERR(hdmi->regs); From patchwork Fri Jul 7 07:20:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?5p2O5oms6Z+s?= X-Patchwork-Id: 117013 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp3083732vqx; Fri, 7 Jul 2023 00:27:32 -0700 (PDT) X-Google-Smtp-Source: APBJJlGo6kgFq30oQbiWfPIB3ajyHDxhjRDZTZ3zo2/GDRnTg8BYgPm3AAS+hw9Ycjl6/COyK+Cj X-Received: by 2002:a17:902:d4ce:b0:1b8:7e53:70f with SMTP id o14-20020a170902d4ce00b001b87e53070fmr5280593plg.27.1688714851961; Fri, 07 Jul 2023 00:27:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688714851; cv=pass; d=google.com; s=arc-20160816; b=CJti+pc6y6QWf/ET/9Y/uu2c7qlNbgyQyIVzoifs6vHD/OHljrUvz6rNWzIfyxUMIT hdZTfD7/VxLa1ciYF47blyT/3+DJc8n9GaupE1D7dx50onLKN1RDYqn/fyYOlLBK1VrR saolbJk+/PGErihjENIiwmIyYsKU2a5YQXWMXck0FaWYtNDdgY2mq2E/ha9fJ7R8Sk9Q m8aJi0eUdLQNt0Txb1dBNwNldJ5TaZMLSTL071mAQD52FCJ79s39BONeTm/SIoxViAzD 8Yo132OTNm3AyUyf2YpruunjpBPiFy0YyitAeExTJ3cM/O7jaCeynEw09KliSVKeMz4r FZUQ== 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=ivfT4v0mzD3LpVA1iGHHtg7OrjYNNt3hYWZ2jX3pDWo=; fh=y/wH+vSQlEVQgp66lZMapn2SXaWbLQ+58GCAz5f37TE=; b=CJZh663SD8OXTvtsQtClk3uq0kHGc06ddp6+difmsy+YAJBN6NFDoOhcx5hVEmqgaD jU4pqjljuXDTKOXMikHrlM7GgWWbpsAvG8qJzl1JOM61g+HL+z7RzIkGi8cjcAK6b8Yn 5GT1rrPE/CIULLK0V/4yCD5ODld8XLf2DA4kJOwRK/5/AId/A3XcgBm8L11/dvuovzu7 clSwNFFfIMQr6lbUmmI6em2Yh24RyMEES8FhbaXryh424Kwd3jkMCsQrzsrX68Sh7eoT ZRUpl4Uyup237hMSMK4Q5yod436834NC1fOoZHicijIzO+FSQMFNbzILBvdkfNI4vY6T QnHg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=Vz06y4G1; 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 ku6-20020a170903288600b001b8a7521b5csi2944880plb.244.2023.07.07.00.27.16; Fri, 07 Jul 2023 00:27:31 -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=Vz06y4G1; 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 S232319AbjGGHVK (ORCPT + 99 others); Fri, 7 Jul 2023 03:21:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54000 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231786AbjGGHVC (ORCPT ); Fri, 7 Jul 2023 03:21:02 -0400 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2134.outbound.protection.outlook.com [40.107.255.134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 919261FDD for ; Fri, 7 Jul 2023 00:21:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JmYFM4TvC2yeF6JsbEKlov8N0v7mBfr57sFXOrsUr0HAGgGwAHVTiON7dE6N0EywmD+A0ndpQdJDxqKxMNgesPFzZNIxL59bypwD7w0lI8hM0DVOcMVqbiGpeiSt5I3JMiMKdbNRFBaMePU6hs7sulv9iiW9V8HRB1uMshjQDg4TpOkjQHiG+6mvMO3cebHvmCCWPMMwOOHexSagsuXU/k/b478A5OO1Ad7ZRuE+17pPdskQ9KFL++lNyJWX7sSTTFDy6etPvIx/A4Xgf8PuDQIr3A/Y7C1I2aVV3+cvKtyOj3pWNB0vPL00UbHTIyOjImPtQE3omAsMUjftwLlp9Q== 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=ivfT4v0mzD3LpVA1iGHHtg7OrjYNNt3hYWZ2jX3pDWo=; b=oOxbiD43mqwE695h/lIwUHsupdfZzWj5d2f1VbSDFrbq5rvs19AMmrroKzHFLBtNNfdvM0HXpMnppi254P73o/yDo0NXB6ka/CrujWKklbBRjICCBVKLDexoh4U5C7KDCPoSZeAienNTBYG0wpsJRlFbeErWA9J5fAAMZkvNJn2yUcoWFofQdVj1P4ujz5xvVxZKwq4uWXvQQ9WTZrP+CXcJbMPU4oS9Q9TtsNIZwugCuiqV6xzHL3Hrbo4+w/KPNkMwZ4xXO7RDwF8rNalhRAVhixCuJl2KKAAiz0aBAQNsB+a0lQQokswFMGs9Cbi/CQOrG6ZAaNJx6AwgLznDXw== 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=ivfT4v0mzD3LpVA1iGHHtg7OrjYNNt3hYWZ2jX3pDWo=; b=Vz06y4G1zIzWBMX2MUcIOR/LE/N7uW5t/LMNN7Qqm1pkm4kvtxeAhtvYIdUYDNhu6+23IMIVu4sDjJm8GfGDjOTwgg65V5hNYXFIJ4FSFDKomFc4f1WRcqNkCFjXB93STY3gaiOXqrYS6M+u7uiZolLLXCQ+kEZUKt44+8K/SsTWaOoTpljvdF32507eBAs2aACQX7y/Djo+tYl/jC7OT7nnY6jtnmlVr8NEin1B7kQzVP/Hykdfq1XQveH1R+Szr43RZ0NWoLcVNS0oSJtxm2chxDUOl3ZRFDvGzQBE7dOyUkHGg9wP+yqOv/qqzopJOYNNnBQL81VNAWcZtUds1g== 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:20:56 +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:20:56 +0000 From: Yangtao Li To: Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , David Airlie , Daniel Vetter Cc: Yangtao Li , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH 06/18] drm: bridge: dw_hdmi: Use devm_platform_get_and_ioremap_resource() Date: Fri, 7 Jul 2023 15:20:22 +0800 Message-Id: <20230707072034.48977-6-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> 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: 68c9d2dc-dfbd-4f99-a769-08db7ebab4df X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: YwzLE0puxQLDXCZCfu8qT/BnY1r+atOnfBQQY1VSNUDJJjsbG+nmxxBIela4x4X25cO49mCwzBT9yMxk794BZiswh8TdBh8A0LKNwWriWs7DmeR0lzirFVjmmafjtuqyzZ+YHcxHqZBV9o8Wvc5OBNYcYr7kTQceoyvOKtC3ntUBNrBrxISVRz+L1Z0Z8fgfxVTsBqdpnWk6/Tp/y26z1gLIPOmQo519UV3nXI7JjIOk5KlS0+CWkidCc+d9/PTtTQI35ykIPcI3M/Y5alZf398v3nUIAMaNuiMpaYrt3qE0fET/oqDmJPJq4yhs5tld3g6oKvI1nwQQq56oiD1Ed/5JJSX0rJ3Dt7UDk12fkgdHuJUdty1cuaE6WtgBD6iTbfrtxGeJqN9EoDzXJ7maroAS0V9JS8gZdWySZk4biaKNDGOpagXiN6O1OJFsHkkEDLSWtxtqAOb32qFOo0Dn3il8CpX8859jX8E0tR2Zvlq/fqNyetR4Miav+MkLiQ/UpEfsJxnjbQMFKT2YNJeqbEdpDzDvpunvf7zSNF3ALGD4Fs16tcyPfj3WBkAEKw9TGmahAUCk/5spwU5qr7ZGZ1M9yPBwkFbXzhLj0w2swl6uGeEkk1/Geukgbm27MmFB 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)(4744005)(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: zY3Sev/XKjP8k1uKtBbMVCLvheebh7KmyFpHZSMlCUDY3/GjsIMZEk+GJ/EW6NFuSsbMEjJ/RS/K/6CAISTa2gU8CnzzWFI7ErgwPbqxprMrIpZMTpN5NwBadLJfPc4n/imFRujezzFel2Bn8eiDlTVED/cltKx4IOLN15WglGl+lNGTApCNeCcJiMNkfKjBI5qkm2Ak4BeGED1hGdF43S+lD/cFticChghle3j83IBXBJpNjF6ciuRXvvgTFc8z4E+5PFXR798t8ZYFhi9Zu9YV7sIvPYf611NozzSvi7dYsXFmCaXtwAdX1RRT37+M6GXFAEqWVf0xJTKEHDUutUCSuMvM95cvG3v5TUO9hyXdQskcLVha4OoWA+JaAYufX6Ronw3p6SOymDeff73qaSJqI6uVO6Xo6XQX5DsYIpBSgjYe/aGjZncmgY3IXfYYrVRjiYndGvzWpdwpwSjhfmNTUdgI/enhKi2TFV1tBdGAfgjXdC7+nJaFkUbNo842lISx7cVJB+VL4yBuwR2dnjV1DAj5GJ+12d5sZN/ulWpq4lM68rZnpKExzK9OldBaUKtgWoU66VAm0+IoAjOCcSKaG2c9xojpR8Y2MnGknwNtGNKIBgMRS0URIbAKOHX0EnWo4IMXtUh9OZvLa+K+P1k5a2XfBfye9nOIpRWvfFD+Bj89Z+gALB4bEHucYY5Rze4mtXOxydw9bnKZgUpoc/6olPfzkMpx61v7TXDMsNC9uBBzi+0WEFrHoQV1C5Q4Vd8VL2nqRg7R9d9rgKUQzCzlfoLWUfIkYOomp0MED/1Ue8aLxmgYUsTOVQOLJ6JhzM66ru/4anjG/wMUQRuwVltRBBI7cE4nTgauBmwgBdg7z5Zo5lQ9/vllWpNDrWGtd2eEUDErn12cr5UBMw8Fp1IR1m/6kBqMHeu1pI34JYhX4OMEZdjaj38EJGnNG+iKvSRDyfWvTYglrsvflkA13ZFOO3fZiACeQArntrzxQs6XEtXWFOIwqUinC4vwAUwZufogAHfoQPCbye1hSV/FU8ZsE66b/Wc2WSAC+hoXDyT9Yrcf3KC3/KKx3583nZEXox5sZ1mEN0tqk4AoeMVhqNrFyM/PRoxGzQrvXov4xGNpNivxhxbY8/j0Kw1IksSpz1I2DUI6QRFJtXlWr75SwIOSMTj8xXwsUl8RizYvtFBxZ+g5BqJt4j7vrKoqW4Hqp5lh2Z0HBID6rRO7iNOUx8q+684U067cQUTvVTgbQaGtpVkFTY5r1tNxLbz7/RXV6f9Hzs1yOeFcJwoouEDX2YQKNw20SOjySl4HDUegXPk8PtJsMnRSXBvE1PiLKk6jbSNHQYL4egVPnGVuqFX+LKGw2JOaXyYptgOvfbId7pnUhdkJYt81SdHo/v2ftN78iNdD+nISbSxMLDNvhfjH6acdsFPlWrwKQ/YNXBs8jYunwGyOHj4gE01vh4oYzkrJr2SjQv3q8Y7KFnXefhC+NdC1oDgxVYOLmc5fbJIjeqG0UutuzIX673/J01tb+O/1cn9S2SCRYhXwdsA2DdIVwi7jZkRJOEb+NokmZLkMBTTQhJD8hFOEj2PylGZZRCg/ X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 68c9d2dc-dfbd-4f99-a769-08db7ebab4df 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:20:56.8316 (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: M4g7esAEJA0YAjeBgkhLzsSaPHzfBJaD6xCAuDWx0QijaavYVC30yqneab9TmdDmy31fmXZz83zaYo55eR5TZA== 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,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770745864634109980?= X-GMAIL-MSGID: =?utf-8?q?1770745864634109980?= Convert platform_get_resource(), devm_ioremap_resource() to a single call to devm_platform_get_and_ioremap_resource(), as this is exactly what this function does. Signed-off-by: Yangtao Li Reviewed-by: Neil Armstrong --- drivers/gpu/drm/bridge/synopsys/dw-hdmi.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c b/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c index 7b66f362afd8..b2b320ba2196 100644 --- a/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c +++ b/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c @@ -3417,8 +3417,7 @@ struct dw_hdmi *dw_hdmi_probe(struct platform_device *pdev, return ERR_PTR(-EINVAL); } - iores = platform_get_resource(pdev, IORESOURCE_MEM, 0); - hdmi->regs = devm_ioremap_resource(dev, iores); + hdmi->regs = devm_platform_get_and_ioremap_resource(pdev, 0, &iores); if (IS_ERR(hdmi->regs)) { ret = PTR_ERR(hdmi->regs); goto err_res; From patchwork Fri Jul 7 07:20:23 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?5p2O5oms6Z+s?= X-Patchwork-Id: 117010 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp3082345vqx; Fri, 7 Jul 2023 00:23:40 -0700 (PDT) X-Google-Smtp-Source: APBJJlH4lA4NEN7Ie9HZFwQCZk/2jD8trwF/2jfZS+IUbtMP0bv/6CtR7g0iOLHb99i8y60EDs3U X-Received: by 2002:a9d:6546:0:b0:6b7:4af2:492d with SMTP id q6-20020a9d6546000000b006b74af2492dmr3849777otl.38.1688714619996; Fri, 07 Jul 2023 00:23:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688714619; cv=pass; d=google.com; s=arc-20160816; b=ybcBjEUoqV5oLsAEOBNHY+WslqL/+Fbo1fdyz4srKnuF5IZBlRjmU+SqLGdaeMuFZS ORF3SObbZ8/e6uVw2iHPHJqqg5PVtkzTb+zl4rEB3DVou2JA4LIdlZVENgzpcrRWg1z+ 10Wrv6h5SOiNVByFJpgrMEaQuyJ2Q8nwEBbmL7IGOSb2gaAIURzZ6hJKA2rgzN6bBThG waJKZEmLYkFmydFMZPe0wmoLb8hI84F4iSjRPAZ9by0UnAFNFwDxusCPBXKAwQBGm2BS jW4nO3Ix0OsHpForIVKHqzrS630A1kuxR0Hxlis/5zHYoYPrHf+ZsucVvzAm8BFKrL5q srUA== 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=eUtCUGmPwdZL1TGN9TvsBV9CwQ515piuDigq7/yc7Ko=; fh=y/wH+vSQlEVQgp66lZMapn2SXaWbLQ+58GCAz5f37TE=; b=Xt6pOBJr76m8b2+tcn8y9cD0z19IRPRvIG67rMaVyao+EUyvOpbF9StOwi6ywkWmPD bPm1e+OQh8TEDuLOnQjZhT1NSPnoAUR1bKnk3FHrHjqFoj4HNPfk/3jxUtrfP78pOjtp DQBtloj/8c9d7ed2wEXiblqyT5ZkB0zGCpeJVvnme/n19HzsWmxSM6u19u/bchLyZ9zO tQwYlRoTRX6gegh9FV6wVFqqtW7UzXZzoFoMzNzYRptC9ay3SjTJfRo80fGgUbC0O+P1 eerUH8ujUQyS9+acmMOCc3autChpAAb3nT2GWTIV5cXA/O3eDRIWrVNGUtp8mZMIhi7G CX+g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b="QjBW5/X2"; 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 h192-20020a636cc9000000b0053f265b0ef2si3006268pgc.471.2023.07.07.00.23.27; Fri, 07 Jul 2023 00:23:39 -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="QjBW5/X2"; 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 S232055AbjGGHVT (ORCPT + 99 others); Fri, 7 Jul 2023 03:21:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54358 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232203AbjGGHVQ (ORCPT ); Fri, 7 Jul 2023 03:21:16 -0400 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2134.outbound.protection.outlook.com [40.107.255.134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 07CA31FFB for ; Fri, 7 Jul 2023 00:21:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=arfFBUQiWe5vc22M7GVVioJLdjg2wXMIGsIsfLABqpolge2FwzCpTSM8fpRy9Cw84214kGM9E+5HU7efk42/91SBLvFsad19Efpm64ntQlwyiUUHr87MYv6ulyQRPpNAsNzqmoJGUWDVkjpRlDW3KIF/5zZ4LRpe3Xw+Ku8UGVlmnB2xOvYawa0+9JNwAS6lBtvKlv0MB0qC+U5ekdbenxDDqy4G8j8aZ3uzsK+1xURakykC3W59rS99iIyBY7TCRgQtphtZ4STmDYmKQCHNVBIMSHZNk1D81XAGrM6cXhlRIFaUzem4XpvaSCFNL0cMRabfLrsEGPzcMH7mJZjP8g== 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=eUtCUGmPwdZL1TGN9TvsBV9CwQ515piuDigq7/yc7Ko=; b=imvQlgYi/Js1gyuEOTQhShR2ZKz9AEDwTYPN3l4aOuCBdn70BxGuRF+sZwfwT0vUYz+cm/o3NBVL+O8krAmh1H1V9LgxC6kkcHHSauxJRgIOQgeyPmHbuefC5ieUnu16GHdhnL2+Kt7ZyR4qeiyEgjooDRRlnHA/3OUKxSVx1AGjG5QgU6RJwFCuySuHw225LLBn57PpGozIHDpnnTmFeoRQGl1HTVDGzr9v9iT4HOSBhaS+W9nd4CywrDzTxA9QJmwR9PLucbQbl2MWOrwrcD0Z4DP/neXnSBXhgB2leunGy37fz1sXPX71unMXBX/ohHxJ9aMVIzxDgPh8Vj367Q== 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=eUtCUGmPwdZL1TGN9TvsBV9CwQ515piuDigq7/yc7Ko=; b=QjBW5/X2BzhUzbNXo20u433a3RCscThsUYPILq6u3ZFy+XMWB061HbWtTncccRpZIC2ZK9IthZZ181zC/wIkSddD8Pttm3KH9xP3jYj+tLWIHhD27yOzmvL7xNbWVGwB5954z5x8I6eVvmaOOYC3kh1UJw31CqkIUgAPMEQjNZOxTqjxIbQ9OI2FgK3MgSbR/uc+z9M/7pTh+Li5kSjpk9W9as8SIOgNMNwlO+C+e8PzSwa3SHXMth/CixETRC3xwOImbNHv1vrqj9o+/G+mFRjyDFgR1fePHeiXXC8HuRfzAa7e1N0svK+GJDKL//R9BWeYhtO20SmFdsNHeImVeQ== 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:20:59 +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:20:59 +0000 From: Yangtao Li To: Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , David Airlie , Daniel Vetter Cc: Yangtao Li , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH 07/18] drm/bridge: analogix_dp: Convert to devm_platform_ioremap_resource() Date: Fri, 7 Jul 2023 15:20:23 +0800 Message-Id: <20230707072034.48977-7-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> 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: 6dc5ed5c-1f05-4832-d46b-08db7ebab642 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: VcQWoWkb6SnDlVpvrzyps41LaeILxuGptiIDQtMdjl2PHbzqyyJ1h/KL0OzpNqeE0OCe6aR4T7wLaTYA4ccB5ak4Yhx0gTEnUql+3Ei/v95pOx1KhKC7NJ0ViENPP4REc4VxFJHJpE34xca2O4lsVOMgI+ob2YSeExGAqXf9wPelIy42DDiuMh9ojFgFx34maQFblCFVsD4Bw6wTc5MAx5FVDXqLEknbzXfzfcFxqZbmyr6I+NffpBnr79uiD0daimeSsQnGz2150upHLXqXi1sHwHrUIWzZBs/STu5unt1673WIjlirt+hS3AHuvEwu9Ear/5eKaZ8AmWHqJkW3bY0935WBR681GlhBDbalBsXciakfkdqQkwYGd65WQzRf002xk8h6dwMAA81hQT1Qqg0kJdUYMBTMfH7So9XC2OhibeS5yVPaL5DLi6gx7YfO3g4Z9R72enDt1Jj2gY4BFbU1ZxejjiYK48RQMKCd+n7zKVmvdDNEdgMlthdibb4rbczPOyKJuiylxruo045H20cEEhqZGU7Rn6Fq2AXRT8adhLAa1LvEoUmGAk2kLjvv1FHmcE1ZDpuADAWn0dSiMFqe27buCat3OdJogXxo8Q8+QheOMQdpwB0XkPNXO6L3 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: A0Rpm3BaHmKcInRz5SRED0rep3S7p0t26T4MsLED73SmZbTrJENWG95Wg4rZd2YD6vWohYh2fnAkvsIZy+Mx8x04J3vj/UiBjytL2reUnNDPXE/BE8lJK7ovxUUMd0+BynsZt37LxK65qbFJFlOUIJkTOLghqhIKGqSdbJPRGSDnosXngznJ36YM1on9PKDmtNRnyQsmSNAbFD1cJ0nu/5SkvjzgmM2KD/gtWYBiqxfPatNaMbikEb8r2MpBQidbdc1diBWaYpzDOSMW5ck4ejQgKHZdaPcIV5WaEwSnR6WmY3YCpht8v+T6htEsVT7EuhXAqfG7XzigZO5YdPAFEcGZ951YRS59hZ7H/D2k3xpZYVkSk1s4L/v9T3fGNNoAt/88kb8tmGNAzYARWkEoilI0U9rMe0talfVjdi7nTy3SEjfJhf2BMrhgZmSaKuGGsnDkKSvhbxBIWFMPB5kRm1Y02oHKgoS3bpWqRNQ7EHTyupTlYvGwMk7KyDw5TOyZclppxeyjShzCfDXti03U5qzIlLcOAjhBL5fQBzCs4/vyeazRYxR7fJAX9Z2Su1r6Uy5NKVhGZIth4Ry8y19pdn7qEKLSGgBe9RC/ahQcdPAKYRY62ZFpF/aGRY6ihlpJy889p2PXJWk7md1jfGmuF8+51N1E3jgK3VnebPRDSIxhACEWBfLIc9s48kqsFmPNJ7hDgQ05Emkl6WR7rHLr0u56BAyWEep3FIo28FhBL8kKMYQESAxO00g+FLDQE/5SGUaueN2LfPBirML6OcmAx0BhKW9bjNCCiDKfGHzAqQ3I5wRMExwjViIcC6iX7eik0HNhzmSH4n4g+t1Ozsewl3dQxkYRhXUfn+TPe21RnbHMO/xLb6CiH2SfYnuSbuX6yCXlapvSe6wBeslQ/55/9wV7VFaTrmAnOqZWAKwVEIXvPM3oHVT9EDKYp26mLXImONurPYNr1VVHtGO9SRL6Qe+OtMR1+SjXlnfzY77EEgOEQFbMxS2QAKebwzfgBq5ru/sQ/tr06J4r2T/XEaBsusAFYm9scfCZa4P9GLyOgralJzhWvqxFLF9UunZB1+PMWIE27FanR2Y32ixyFdslQkaclRFY2uhyoRpQp1ilSYeqLBuqlliDqILOttONO9wrm9nTcQDkqr1O5OlNXAXQXca7sS+iJ+aztYbc4VzwaLzN++kI20uPMVDnH8USO0wdyA/syuExwcWqs++XMDNaXYrFnNYTD3kWWk6HRyCROOBOoGnE4gRcYDSQEfsEZ7C2+SbyhYNxwj82bBfBrJPXNa/FPMi/+QNTnn+MzcwoKzdTrbMKqTfo4a0K+mpY+GYOZeaTjaG3Un3qmq7Uk1Dner4szguYd6LH0MK/Jn4LicCrF6XnfxchWodYSMW9JjYNyxOes5WNsILE6T5tomy34wlCpG9jO/QInOFWp5Nbm2mclbi16xSKIyxuT9gVyVjJezR/w6e6nw32gr0MtMkWbQObhqXydmaBRBMh0Xm//g8R/YYXrvZRJ5Bz4+KIFA3B7O/qc+cORycbqqavB3qGO+jH1UYWf/EOjHNwMYpBUxOVtA2b28Nq95FhcM4Ni0Fs X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6dc5ed5c-1f05-4832-d46b-08db7ebab642 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:20:59.2086 (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: UszVXvr6Kebk5JE39/Ku5IqqXL1/u6LjTAgcbXyEz6BgdKf3n6XhOHbGUUnunoBCC+HYMr13Axesyb+y7l3smQ== 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,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770745621774083200?= X-GMAIL-MSGID: =?utf-8?q?1770745621774083200?= Use devm_platform_ioremap_resource() to simplify code. Signed-off-by: Yangtao Li Reviewed-by: Neil Armstrong --- drivers/gpu/drm/bridge/analogix/analogix_dp_core.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c b/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c index df9370e0ff23..c6b228f1ed4c 100644 --- a/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c +++ b/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c @@ -1686,7 +1686,6 @@ analogix_dp_probe(struct device *dev, struct analogix_dp_plat_data *plat_data) { struct platform_device *pdev = to_platform_device(dev); struct analogix_dp_device *dp; - struct resource *res; unsigned int irq_flags; int ret; @@ -1740,9 +1739,7 @@ analogix_dp_probe(struct device *dev, struct analogix_dp_plat_data *plat_data) clk_prepare_enable(dp->clock); - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - - dp->reg_base = devm_ioremap_resource(&pdev->dev, res); + dp->reg_base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(dp->reg_base)) { ret = PTR_ERR(dp->reg_base); goto err_disable_clk; From patchwork Fri Jul 7 07:20:24 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?5p2O5oms6Z+s?= X-Patchwork-Id: 117015 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp3083973vqx; Fri, 7 Jul 2023 00:28:17 -0700 (PDT) X-Google-Smtp-Source: APBJJlHeNkJUfP1o8PTYNrtjFr9p9Sor60TaO1acjiWBpftdAXzShpAwU4rAwI1Lq6XmyYM6BUa/ X-Received: by 2002:a05:620a:4487:b0:763:9980:c895 with SMTP id x7-20020a05620a448700b007639980c895mr5185770qkp.70.1688714896758; Fri, 07 Jul 2023 00:28:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688714896; cv=pass; d=google.com; s=arc-20160816; b=vp2821LTyVxlFmZt2SZ17gW4wnsCgNKla6iwD1F0nFZ+4unNQBF6jH+vj9xM/VCrC6 Kzc/Sy5exvE0+14dkkdO4cQ2xu1mddRt+H6cSOf9vh8AsyxWqe8mj5gCsdh8Pj+kOQsd 6GgcMn8Hbx1KiC841ansV8a5sVXNDCC8fingiQk3Nsb3jS0K4I5JIhYtP2rGM8WuK1mR WZ5hMtizevntxQyaPfvviMBsiLStOkqkB743eTujXW/me0xhAD61AjNtFMts7Aw7Pohq d/ZyckqQtiTqfupa8Tc5mjf6QwIHXa44kRAA0CDwQrWJkIvBL/FZFWoUriQJr/93S7YL BG7g== 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=nEl3Vs5H/lT+04CKc95r4c0yu8RtZ5y+LJcwuewX1o8=; fh=OkhKJqwgmok9Uu1AW5HLWSzylSfBluM76Bb81dugc3E=; b=Sf4FCERPu4Ql/5O/loR0a7M2THMXee1VPv8d9OzBf6slT5zu4wWIH5ztU5R/b8DM/3 j5bISzupyk3y8xpbbgzkTO90BsvSwlY/NNeR6U6ECuvU9uO7gWYdIVKxD/rp3KiH7BJ4 MWP8dPrkcXkmbCG9tp54GenSksDtA2F3oXuhrf03T/6mqGjtyHhS46fqvVEEanSxkPmR XMb6O+6/9CHG/GeCiMAsFXmt6F2sKbl2X8FHFkJCP5fjvDhg4wsvW1lnWwC3jgOLm0fq 5UQctxnOF8M8kCYkSWSvAnPrki6NsOfFdTO5FaFxTXE4MO1F0BnVWoHSngeRRaOxE8zc YIoA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=m36uZp3k; 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 j13-20020a62b60d000000b00665e0165510si2931774pff.252.2023.07.07.00.28.02; Fri, 07 Jul 2023 00:28: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=m36uZp3k; 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 S232159AbjGGHVW (ORCPT + 99 others); Fri, 7 Jul 2023 03:21:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54372 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232408AbjGGHVR (ORCPT ); Fri, 7 Jul 2023 03:21:17 -0400 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2134.outbound.protection.outlook.com [40.107.255.134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 671D12116 for ; Fri, 7 Jul 2023 00:21:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=K+IAqfpygwTyejVG/xWVCMSPg/hB9Ja4jSoYgLMf6W3dJ6ilgEBf3f/ox7uNE8XC/sohoiLB6/q385BXicxbiMvWDZ65pjs7RRYA5RzQXwkO7ERSr4HHtIS3lN6yrhZXo9bFWcufiIKVhlG+d9vSXQWopYvN9qpnD/pyq2QRxW4B+73/ZyiQE5/wYRyqTULEBk/mRdxhbgCq1U+3k8BqmCKtxOPFV7oegvxFG/SH3eAzbbe0zR6zsaFnZlepjR92RF0nQKdpFXpbnB1TJKb27iRnGV4Ni2kWNqi6s0V2ebyNBoRkDqM14MmzNQ38JnXWsZrI/RgkjLCem/jQGTWD4Q== 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=nEl3Vs5H/lT+04CKc95r4c0yu8RtZ5y+LJcwuewX1o8=; b=QevF/v7qQyRdkIqLnNOSOYGvcWYTqekvGzH5JxSOZZIKfmf4L38DquWzS+fQknbP2S6hXxLGE/uluAqIFP8TESOrqDb0rkC5tH1tAgsfwiFg9/KSpJ9y/nNx4rfwCNUIsWWYD1DI66Ropa+FSU/3+6Rjo31cMSAgFxvGqTzxFWKLaYt2e8yd2Cv2wBlWGjsMWrrDWEuSFS7jWmgsTB76ov2fcff7fPAJ7iHN4YUF/b6SWxvopjQXIzoo/QuoCO8CshOwh8g5anksuL3RVwpEDBM3Izld/+ODddggZNe2qXltLnDbea/f2Eq6PeFzOVV7EFYCDktLXyLMRWzgmDC71g== 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=nEl3Vs5H/lT+04CKc95r4c0yu8RtZ5y+LJcwuewX1o8=; b=m36uZp3kG58OjWtQe4OewyqJBbiWRxnZbxS5z6HtKDq1f1hXeSmGs9u1ZrKInuUPx/Az1JjTrqkG/wpZZ3opkf/HjZLLfHZMdY/HPZM3lyPEz4htkdBgfQ0itQMGLJqPDAaq8h3H+pLwt0m+NlTpfN7p536MMN89WDgy1TrWjEMNO3bWIjAcf/GgClZ3Arbl7zviW7tn43fDIX2nkJgazVr1Kv7s0StLQL303KqZEC/FuR0PXBQ1D3Ph+ooux4ujTYmeB1knzpQFGX6gb1PVLY+UkF3qUPohVCSs9g3SBnVxIKezqnK8XPY1zKDhP8Vl8TL7HvADQ8gCJCnj9LgAfQ== 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:01 +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:01 +0000 From: Yangtao Li To: Philipp Zabel , David Airlie , Daniel Vetter Cc: Yangtao Li , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH 08/18] gpu: ipu-v3: prg: Convert to devm_platform_ioremap_resource() Date: Fri, 7 Jul 2023 15:20:24 +0800 Message-Id: <20230707072034.48977-8-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> 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: 94f65122-0ed1-45f3-8d69-08db7ebab790 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: I0G58zR99uIa5qqTjvCowrPPYzNRPjfUNjd4+WflhobyNcxtQTe47YJ5mpWE34NuWNcdBbv2wLabdvoyrBUjqCXHUFMSXH1AT8BgZrD+QBod4okDmCAAUWkmss9pyHKXTxgVZST0w4SNomjAcl0dXHHiS2U8oadEI6wT6ArIYXqswxn1hjgV2iFF2VeeDxY1TGz9OPsekhtd/mrCMDziltMeQlsU2T+EVk6zodYrMh+s4ttVq4NfNktVsiStZCh+f3eMdGoZPgG1yEGAckXHmZTEfBUGNVthwzO69XDnNbNMSDkGwo9gV82ZwoBRPZrV2go1FiXRZ/R7VbajlBc8ipnzhq9xdb54rFx3zaBYnwt3wc0dFx0yVnYMQv2+pnEIcxkh3TdpI2LpFeq3qbVkN6Q8FGWMunXYaUkI3IWpAcpE6iKcqpIWbOb+9Hmstn3s6p+hfTKLln6mbc2rv5toQLH7WfWEMvL3cOfW1YpBagpMFYBzdoYrwsjtkjiHn4dTm9ajPZkf9g/Swlyaz1Ve+q383My5cDxb6ExGQFcFabhSono4b7lIqS/1PnE24qpbGtuy2FTDkGKmt5XWH5JE+RBZoG+OIhV73LZWaAq5inIkO7r3GtOXqg4JUGTv/vfq 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)(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: m8qcpvmorlYuvQuHkCcYlbGYgTRLarb/t8MO7CjSGmNCau/kRAWpOfdnNqV0TxkSx9P+LNkk/VjkZFbliuAdKh6SWVKC7jG6tRTjesh43f53uhJfJ4BEcha9txnGf5VN+THaZi3KtMe2QPAZzTvMgEYfYTU1CT71yKynky8pf8rRguodUbLrwtbaeQiqrRPpnCC3Ma43yB+PmIHYgqMbyJapsiFQexsJE8ZqTLuMk2RUonhNTPI3H1NJf1aVYRYMih4vAq4pwOGugMTidHISrgp5Ah6uav0vPB8uI9d4tVJves0WRSA6qOzaVul8iGjLbrwzwvFDj7hGZnTcQdaYc3Q3A2Hl3ES1iRA3SpnHr/KIb2DXfbQ+kTUS3xyP8DjHi9Gcj328tAKJjA4zzMrWTalc5xsipixACYDIYwwVt4hwJhBuZJF/mCfsplQnzIfN33BoT2S6VG91YhywNiF8Y8SRKkR23sOf2q2+7O3oWm27LwNgqcn+utGxD3wzqa1oVr5Ct9nfn0uEj9LRzJENAWVmWuj4wvUZ+QK6OLsi2u4G5qzy8NTySdkK3LXZI8cYoK0Ssu1DklMZ5oFXD0SeXhkBcu1BOT/UzPvRFfDIMXjmbK1brFaezHtW7W6gdKjFvS3j0GeZW/6cWnk6IAmy8LKTstBt9YJLG2B/JYw3Ue4TBPNUtjq3scBNPVR7uy9pAxDjR76qtJhKKD3zVA7CKS5DOfce1qW/P1rq2REu9jbd7iSfOoq1385vykq7kOhJ6mTmhkeWYT2qbVoXo1moJh/hj/NObYBS5bx6Foe2pzJMqdYafx1I0PGywdt9Xv5yNQGpJtncLAuNq8nrvTboVkUvMBkmWrWng/Qq25AL29KNqhQ0uVfGqKkEsmRyBNvClH/dBDN9EbsXgU1vYskOk16/6lpmGRcBatdJ1l3IifUUmGc+eD3aVI28N/SoBBngWKcsls7LckNnygPjEIA+rgIYhqxcRqFjO0wojuUL/NWLLfNyv3kRbUTSVUZA0mBj4iOhT72ySYHVLPYckeq2IfsXz4XuXKnJCOgrZ+kpuDYvNNolnnn/ZT8pzBrb2cMPWqm78RUc8PvD0RgTrs8bgaQG9uyvJFCHBt87YAkta7RXXkuQ2bhETeZGmtGxtm+DD0mK7juIP3+06CJDBZLIWfid2ikLcJGoXGhnbF3d5M6Wk4G2ZczdhE2gIE3h/RUa9G8vXoTCbCw6PG80NseJcap2fNzrHmuMG0USRCfBpUYjMVH364LpOePyspAOaFrXDgd1FZf6Fc0k0fu95MXfRCNpy+kZ3L2zoJP9LFY45WK5KzxEtYShHiJVbi9xEFCFJGGdU3nA8Hgwhp+x6fA5G0WvoT+fQ8FyxX6Y6/+uIXwPbF7YK42uTliShxrOEkwbzTKADje+LxppwL/Q5W6qTNBX7e58JprDjvp9/9iTbNerfZfGqtXIXYI7w7PMPm2JFgjS3tMqt9ySFZ/J4dIFzAV0zd4j4d1SYqB0Kgs6Gu3czVXse0qxfZuE2u1QCKmHrd42JAZ7MutE1GjhWkLhMa++7jujXkSfWmFGN5hRjCMDDkO4SR4m/FoW0uwQ7XXK X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 94f65122-0ed1-45f3-8d69-08db7ebab790 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:01.3872 (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: HzQrotGqxkUKVKsnlJ9jZ/mmPDTyjarBI77U0e9+KeUgJricGTseNxuNIus05uXW7PyiEtmIAIBJKEouLiRB3Q== 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,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770745911647902410?= X-GMAIL-MSGID: =?utf-8?q?1770745911647902410?= Use devm_platform_ioremap_resource() to simplify code. Signed-off-by: Yangtao Li Reviewed-by: Philipp Zabel --- drivers/gpu/ipu-v3/ipu-prg.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/gpu/ipu-v3/ipu-prg.c b/drivers/gpu/ipu-v3/ipu-prg.c index 196797c1b4b3..729605709955 100644 --- a/drivers/gpu/ipu-v3/ipu-prg.c +++ b/drivers/gpu/ipu-v3/ipu-prg.c @@ -358,7 +358,6 @@ EXPORT_SYMBOL_GPL(ipu_prg_channel_configure_pending); static int ipu_prg_probe(struct platform_device *pdev) { struct device *dev = &pdev->dev; - struct resource *res; struct ipu_prg *prg; u32 val; int i, ret; @@ -367,12 +366,10 @@ static int ipu_prg_probe(struct platform_device *pdev) if (!prg) return -ENOMEM; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - prg->regs = devm_ioremap_resource(&pdev->dev, res); + prg->regs = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(prg->regs)) return PTR_ERR(prg->regs); - prg->clk_ipg = devm_clk_get(dev, "ipg"); if (IS_ERR(prg->clk_ipg)) return PTR_ERR(prg->clk_ipg); From patchwork Fri Jul 7 07:20:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?5p2O5oms6Z+s?= X-Patchwork-Id: 117023 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp3090819vqx; Fri, 7 Jul 2023 00:46:04 -0700 (PDT) X-Google-Smtp-Source: APBJJlEFKXfbEcRfT7gEidCizeqrAKcFRqfG9azZxs0edYtLcHyVvXoB30Yq7u6+pJ7uPN8n9NTj X-Received: by 2002:a9d:6ac8:0:b0:6b8:7bcc:4c75 with SMTP id m8-20020a9d6ac8000000b006b87bcc4c75mr4475027otq.13.1688715963891; Fri, 07 Jul 2023 00:46:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688715963; cv=pass; d=google.com; s=arc-20160816; b=K60SffkO598roroc5b+XX7fHKn3l8D3nI7dSz8p2Wv4BL94yq/bV3/rO36SQy8mhmP 8d4Q3wlBt4lUXn27gr2A9RQi+sbg3BNzSAeVAER+N356EdpnyrJcKqRg9Js1w0UHCbob KGy9sbTyBJude73J2sUBakGGBcOndm2ULvosqJOC6+U2M7gMs2kACAhk0fsG+k9cu8uZ sn4dxHZyuojdPckRw5lHw6VZBFAeNaPoRRSFyfHJS/pnSX6n+12u3EHRyrQEEPS/aDxt h8I7JViG8PPcBF1JV2Mi2E3BAALqlZQfPBq1yvCCuz040gSHTcwSU3pu2YeQ7EEKPm54 j8Dg== 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=YW9sy+EuEvJZxUZApA2Ps+U9r0wesnA0NlbXsbEGTtY=; fh=MV5E4wowCazqbcJaVtidHWlRfk4k3yRrOp8IlnZMeZA=; b=aceLwD9v+VHIrLZc3v72mQQNf2KZcDUyHGAKtZMgwrQKMLbgghhvkMIQl7dgHXUigD xtSk34GCi7lNTLfIOaygOPUqB3eRPz+w9GtsH5ryd5xsSPK1ln40z/f8hLyPHKaoot3J wCCT7FhA8mgaUcscPrjTTlc4qw0nCu7h8FggbPQEhW/NZCB92SZdeo365lGkdkpNUjD+ UBRcjUMKhabyjUZtFUz4c4assUWlDRCY3iIeXkSDIQdlswpjawbTjjlinyLc1XfegIYa 8EM1Aor/DISYlxOM7ct3QB4E5DpJukCgMELhfFtCRYEliXfE5Dz48hDmwiNjvX9N1lGZ R/DQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=j86VmB4+; 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 q14-20020a63cc4e000000b005576229306esi3306604pgi.545.2023.07.07.00.45.51; Fri, 07 Jul 2023 00:46:03 -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=j86VmB4+; 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 S231786AbjGGHVd (ORCPT + 99 others); Fri, 7 Jul 2023 03:21:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54452 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230108AbjGGHVb (ORCPT ); Fri, 7 Jul 2023 03:21:31 -0400 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2134.outbound.protection.outlook.com [40.107.255.134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B6830269F for ; Fri, 7 Jul 2023 00:21:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Q+hFb0Ejrf3W8ijpkO+2rV10LxQfZdQmx9V9ZR+fvEXkTPARts4W5yKsWQMrTYlDopLiUS7okX0j5NlOTBh6hS8NSfkyS/NXbRLgB8rASZ9n6WtJl27ht6Dyp70vgQgDJpa+61ogq+k42R3NNwjWuxXcA/W0ioxeBLwI8FkirJACCgs7Vg7o7ep/qLyEsiWo12P2YMJNubLF/Ptu+S0Q8NyYZiRu2nKuJeypOwYsvDvkmIGAn31ccjRpuZfvFWr7kpWgThPnwtppWRr8gXiAe/ZxrvQC2TnDC6h64LsK6O4kkvYXlmbnvq0pwhujtK2nTP7q+QSgssej23DG5k/B3A== 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=YW9sy+EuEvJZxUZApA2Ps+U9r0wesnA0NlbXsbEGTtY=; b=JFZ/7c0akXdg6+SkQaBixlmRx7uTes52X1ipOo1ngONH0U6I0Z7EdQm3RtRn7rJPFcVmKYr4xKI2Wa6dIwjZR2vceS9gCDCMKQUznFbobybZ0egX+xwLntwcyyf6Qzjh/tYBfAcKkGCj6II0Dy65OVyg9cvxM5gQk3ecen1k8CXRjbSsahZUYEcrfo9OFVEA6hgop8OHjZju0/Y6+q8W9Plm3xmQEQft2go6KFowH0NuK35Xv57wnBixOO7JpQgn0Rtl014aj59PuaWwJbOkgcZ79Bt3XY2h7wyM0Pmq8T4JlIKRmuOwmlrrTVlZ6Du0uc9ya+NXvnOQl3xhYzrtUA== 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=YW9sy+EuEvJZxUZApA2Ps+U9r0wesnA0NlbXsbEGTtY=; b=j86VmB4+1YTd2Yd6TGQMe1aUiYWje/4yuz0Lz7klghfTM2z4yVMPHqXEwkDLXyC5Ly6OyHxc77zRURXNEdvsMg7IFAgyZ1ZgiMRkBM/F5LOiLbAAMTlzvHnDHdUakgS++9gGKTmpP0ctXccbTFG/opWCwZiSADJzq8dFlpNV87tJr6FkQ/PveOjn7Hl82We/Z3k5aY9Heg5Fh8Gp2usAV4Ke1XgxlrvZClabdV4kcaP19cfltHsN2KKxt09BV65f84JB4hAvMTYHXMPAX24xw2P8k6yfLiy6Q8o+3A68RJYE+UZIyhawUQDyAuYdW38OE8q4FyuFMAMH/0c8PbFMBg== 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:04 +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:04 +0000 From: Yangtao Li To: Xinliang Liu , Tian Tao , Xinwei Kong , Sumit Semwal , Yongqin Liu , John Stultz , David Airlie , Daniel Vetter Cc: Yangtao Li , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH 09/18] drm/hisilicon: Convert to devm_platform_ioremap_resource() Date: Fri, 7 Jul 2023 15:20:25 +0800 Message-Id: <20230707072034.48977-9-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> 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: a4ca5adf-f285-4b3c-9726-08db7ebab99a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 05dIxWr/w6fr9DW3XHYmu6MhpoZhPboVzj6VXZqjpcOGOF3OdIJUCgawLObw7QfiZ2ql9V6s775e6yk2qUpBCWLFOvtYd29xjAOcyTqlnXFETwpPnFVKTzWN+IcxWT4fuFn2yxCcWj5rh+XoLXKSzJfQluwsyxqVGS9RhO0OQys8YHOqvvn8q5PxPeCdA9Ju2LSEFSLWbjR+VHf+xhgd6ziENXX67FrmKS5MpZVTHyWMtEbJ+MF3wf349N63FTw1onewY+ZcxPywNO1i+v5L4u6rrumzEwGUC6Tszru4SlJHDKD7WYGhRjY5vZAxtUmAr25S6V46p1Vwi+eLZC20X0Fpft2bKKY5emPzMBWnYUxIjTm8kII5K5xHCl9sLlb1RS34dVOf16lGh6LTlatbNeZRXRlzmlQliGZXy9ndi/vMjkUJJGbGytxc6SRGXLUII5WBkz7YRFT5i2flqMOTRjduYC3jyDauFpw23PLJ2WPkb4I/4m9vHYhVUlqUdvIACaN+CZj2+6g3KdkjCp5NjOQt2C1yKc4sorshgvLsrTCYLiO0pC+mwu/ctYmmixKYM9VCSxAIFHNP9OHZxhqXtUJ5pZ9Aq3/nUH8T18wzYzLx9A8qQN7/q2KJFhE9tIuQ 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: n6+ubHSO/RDE1D/eb7q+/F62zT9XmgiBa9kzd2Q2T+zMQveNk52R2WiEvwiKBFitw4upY902nFZJ6tnA8bVIB0mf9pASC+APfoJ6jWY9XAkOUYb829UCQdM+KZvlRh/vpS6FMX7GzICPDpBQuZM9VI4KGUxmgE89+igOZNMpskg6gooaQ4lZykHHSpt0fPs8q4oPr7r2AmwXo0MFPsBBXQnxrMsAjMnBLLJ8yRtydmy8S+kvEvu0L4v4gdOx+T2jlkxXs3B+0IghiEWEz+rdRqJ8UQ1yJj9V29HQxgwpX1VS9pqsilweVf2dY/HgMakysJw2uENuHGHbkR3xsv+nXY9YVjct7GN4vOsWwMBWTXBWmzlpKb94R/QiYY/gtIl4H4ySZ2mg5ife8MHzcuRWyANhRPFxyy5AX/8MuRRN10Z++TrpjzG2HwdlPP5rsJvmWgZfRsDiuNOyT+3T5nDwEdnqMIFArbwW2mjGWvhadblsM6SyNLzIFumf6Zh1OiYB8weccXu5x5Fx/hSKk+nC2ntLfNm81Fem7vM1A9ihJn3nJx08JwaAKJsXJtNlnU2Dy8KDJLc7V6jU1qGK0yNp+FAF1YhiUAxc1aTQht0BBaPiIIPYZ4aDLtZ1bZtMOtyxhbl+nwExjuCGB8M9BMHJ4ph+MsGDO4v3yLyx2uOcbdA0G8bRALXyaJaIYwnj42BAgb055hVw0uwTzZv6TUsvdJl4MbTpDkMGtVJekQ22RS6Ef+ddRMK7IP3kuTysiJp6PJmoReLQwCdSuQyuFz0tL7T9y+uVt5veq2Wx8DdszyqIbfhYnG/pTMRMtm8dI84fah3NqVa4pywiQIo6afBke14UDtF7k46fVmJKP9eb48Vzl5rquSH9kcJdz4nCjrFwwR0HGhG1MUzn128xe0wzABmHVMrduNQFnKdjEE90xAdLEL/QD8ciRjscvZUKp0Npmw4zJOS5ILP8sAyZoaflhedF8rtjiRCV3z0jS5d4NjEKLM0W8/XLfCljuTRe3fvqNb5QYZRH01rIVOybZICAEpblOWh5MLgfVz98HBsoeKVNi9cms27AUMIOar8U5mPwzVeBKpGKYVGNJDa+dNNeRhRZZ/ZfA0ecjJTh2ee1SpFRjrFSecsg7W8Gza0c0y+pS9ayWv0YHUnjBnj2E55dXJanEpQVeWWgjIATT2nwZp3dmFFcsUNviN7SXNbXtA8poZlW5c45y44wrYI/NU51szpojYHLm4k+NBnaiM0MSV8PWsOgEtwMtj71mZkIg/75XIKUshMsNYlLfhltDGRbs49afuH4GETOOy/JTkKcV8GSCgXGji5bqkCKq70ZjeeH5LkG8f/wCDujscyOoeUYs2Zib/akmM5eEI1+fjyVbMqETK/htjBJHciG42nBIrAjGagS5c0oK7bpUfDqKtCN5hUbL1QnJkJMOesa08PK+W25G69rN+6NwPJhhW7zT6c43tZ6qfpw+zpS8KnTHmpZtju08NGsBQcfmj2URtuuqUnVDFPQh15omrCK8Dqm5QP/6vJjBJVOqdFGXqMJ5GtyrfTLlSIlGz7yCL3OmhvLt42/wZUN0yf/YvGy9JHGOTIU X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: a4ca5adf-f285-4b3c-9726-08db7ebab99a 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:04.8025 (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: Lxslgp6YULL3RAnQXxTa2lHb9WmLRA2aXoEVGlWE068rvFjM0RAmA76+iUaSAnJMcoWvLR/6wJVRX4WzzeRjAA== 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,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770747030057292115?= X-GMAIL-MSGID: =?utf-8?q?1770747030057292115?= Use devm_platform_ioremap_resource() to simplify code. Signed-off-by: Yangtao Li --- drivers/gpu/drm/hisilicon/kirin/dw_drm_dsi.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpu/drm/hisilicon/kirin/dw_drm_dsi.c b/drivers/gpu/drm/hisilicon/kirin/dw_drm_dsi.c index d9978b79828c..ff4ed4639509 100644 --- a/drivers/gpu/drm/hisilicon/kirin/dw_drm_dsi.c +++ b/drivers/gpu/drm/hisilicon/kirin/dw_drm_dsi.c @@ -826,7 +826,6 @@ static const struct component_ops dsi_ops = { static int dsi_parse_dt(struct platform_device *pdev, struct dw_dsi *dsi) { struct dsi_hw_ctx *ctx = dsi->ctx; - struct resource *res; ctx->pclk = devm_clk_get(&pdev->dev, "pclk"); if (IS_ERR(ctx->pclk)) { @@ -834,8 +833,7 @@ static int dsi_parse_dt(struct platform_device *pdev, struct dw_dsi *dsi) return PTR_ERR(ctx->pclk); } - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - ctx->base = devm_ioremap_resource(&pdev->dev, res); + ctx->base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(ctx->base)) { DRM_ERROR("failed to remap dsi io region\n"); return PTR_ERR(ctx->base); From patchwork Fri Jul 7 07:20:26 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?5p2O5oms6Z+s?= X-Patchwork-Id: 117017 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp3087377vqx; Fri, 7 Jul 2023 00:36:50 -0700 (PDT) X-Google-Smtp-Source: APBJJlF+Wvp+5Ol9eydXkoG38LQ4EhFEhILVD2RQtj4UXg4wo4Yi4KbMr8X2MoJ4nax9m0qRcF2c X-Received: by 2002:a0d:d9c9:0:b0:56f:eaef:9d40 with SMTP id b192-20020a0dd9c9000000b0056feaef9d40mr5038109ywe.46.1688715409929; Fri, 07 Jul 2023 00:36:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688715409; cv=pass; d=google.com; s=arc-20160816; b=xToWfrSAczXTnSWnQzwNREuSmUEsavhQ42l6A59ViGRSAjLY2bAaaq+hi5iNBUdvVt ei+ER8TIWwKZ3f1lA5gvuTkKjkzTGJsCDz38dAVk/yyLh+QqsJl43Mv1xZPXniTjrOf4 gJN5PJ9HfdnOxPwBIIH6jFv5XRDU0CPbQctkmD8lwbXtYZPdRwcc9C0m6zUXNGVhVJVX YAjEmXORZiHyKCqG8NA0XaVzYsfbsbW4WB49BBtYM6WKrJS/IlWBoz8Li+iKppfIy68R bloUpnOcNkuwJcmVrCNAVxwjHnwtBk7KqJihEAcyav3dhWBNYx8+zFXeedcbT/fyFwj4 vsmg== 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=i2No7Zo84xwCRFwHWRB/2QOflf612freUdHSozLBxa8=; fh=8CosaxLVmmTt7c6Jr6gOWS1rY8DbgZ3Z2abfOQKaM9o=; b=G2MiaV/dC6hr1XiV++qdXDHKTm3kwizo22tMIUjTwIS3czXDyd+F0KNf+JrXtnM0zT /fao/R7UUo3fRs+fmV5+m9OOTAynhZdF7cCMb3N4MQeNU+XbWtyFrC23KrE6YRv4wH7c euTKD7dhylpA1k9F9ibkb6UDuXxr6DSqtkwbIAggwJ5i5/VYdBsqwXbSvpHgFGQ/6cL/ U2rMa+Ue88gdFdc3jG2RZC049pacKKNxAlxFz4IE8CWiR6/QCPGeeicHsOWlAanH+var PUxA7+5SzDKbNNX7+hIKQehtrm7mw3mc7hT/2E8H3NM50q7V05h69ejmLkQyaQ4WzZD8 /Yvg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=Zuoaf7K6; 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 b1-20020a6567c1000000b0055b635f28b6si3306748pgs.881.2023.07.07.00.36.37; Fri, 07 Jul 2023 00:36:49 -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=Zuoaf7K6; 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 S229559AbjGGHWO (ORCPT + 99 others); Fri, 7 Jul 2023 03:22:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55160 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230108AbjGGHWM (ORCPT ); Fri, 7 Jul 2023 03:22:12 -0400 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2134.outbound.protection.outlook.com [40.107.255.134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4E1662127 for ; Fri, 7 Jul 2023 00:21:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=b8SYpms0eE0wQzeYFU86HjeXyLgo512lB1o1zjh9IPzl0MCkMxZ13EMyrGQRbYm3Vq9Yljsp8C3JD266A7RnCBKeVdnt8oXH7f23JOYTZZY5B557VoWkb4xqc2GwiHjxTOugAlKuTO8KHi0DlSlYXC8iqNztlGiSN+eZYNz3h003cs1TeSIgCOKKbLHYu6H5dLOdwKJwfitW7AovMTorVIk1Tg8wezOH/cp/n6FCGRTfxiLdVdQhP7uRGejVD521EMK22vcEtK22IiODXroL7D7tOmI9iFLhE5ht/bQqdQDsKk+rhqGReRA3IjI4kPBECCvF0+b4ZroRfBSj1wB7tw== 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=i2No7Zo84xwCRFwHWRB/2QOflf612freUdHSozLBxa8=; b=boZZuaCKYMC7jko4n5R9LyU5sSN8Kq1cQ4TiuP4k6tSvMdO/Qfasn2y9rdz0ucw4gaiUqfhz3qF3KwPcVjV+VD2POmVKaaO2+WwAQzgEsmYN2q2JIs8FnmLpK4qyJ621+M7Eg9OtQL4i8rb2E38WRtlxCNZ/jQ9dcw0b7TLDP6H2TdmdBgcqIHOPWSiWkIgg+/CuaCIMxfsZsUXGNYba44RDAlHPlmgSyOD48R/sRTY6W2ZOYh7ZeNyCktjdVHmV4JqPh5w10nRV3X45Ykiw22KUgh7svCG1CNHa+VXAvbwr4OrG1NaNiPU5nDcGfPhtxnETcj4xnMiZjMTQ2J209Q== 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=i2No7Zo84xwCRFwHWRB/2QOflf612freUdHSozLBxa8=; b=Zuoaf7K6wsg3104peUm+C2d23q8dow4h4LXj03WWlYuPW78lK4YhfQSPur9plUIdviZqhyd0aPaPArcjcylTH7kRfa+hFpYoE3eiWS9SVi4rV6JdcGlmrSzVa058c03soXdl+itAXc4+JmqwwLQe0H3NkjMx3OSjPaTQUaynOQeg43r7v3tOPJ4cQgbpZnrWy6vvQKDz6U23L4dX80Fin33YXQ3kBtpDXkdKuH9UZAR785iaFRyllfGXcJf03GboY/UHi/r2LegcKGOq54jIUV3BrXVmuJnuYaRi1+S3UmZl/6/xZRXtiCSRDpa+fnYbxeUqnkRO1H/JmM1bJcdiqg== 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:08 +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:08 +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 10/18] drm: lcdif: Convert to devm_platform_ioremap_resource() Date: Fri, 7 Jul 2023 15:20:26 +0800 Message-Id: <20230707072034.48977-10-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> 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: 0bd27bfb-7e27-4a0c-afa1-08db7ebabbd6 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: lgtqNS7NRiP4yRGlMAKXeyJ+Yfj5lz3bAVCCPJ6ivUa6LMyQ3lYX2+AcuWePdJD7vhQ+wjEuCb1yf0eGbAWY+ADpf5e5h+HhciM8qpU77odsBd3PlwfuSol1H8ygwoMlo1Px9Proo1EUwK1vJvZxC/31RZ1EeEA3j661hGEzLxW1q0LZJMNPDcTAdvBdTEp72FJjYEYKGVjetX8HXZLjOt4Thl97qFgSvQHnwWtWhRWLUITIdC7FG2mZe5d7t+8XNWN3YqMFa8u9CT+6bKPnzWooqNvKf2Ur9AnDOAZQQH2oZ5n426bLH+Yn78ePlzfqyF04iCzos4wJV3bE/BijB3WHxiL1Qg+ePYuaGYdZFyLZPRD1dnPWMEF+NBLLotAH0qrMPt7a9Z2FN7Lcx8y9OLmDn4GjYBMJt3crF7Hxgt1kv85i8Bg7XRugrltXPy2nOBUqb9IaNb/bZINC3xDdNUb+EGz2HpSxopEyrvYA5krkied+vAlXwCQTWaFuFnp4yAOpiRw1Y/IDb9E9T0F6BxfUoK8vgDA6vJlumVrHNN/GWm8RopgqKUC4dYVPDP8lMry/1YOfgWpnDdwpCQ6uPpst/UVnJuJ8/b4D4bmYosQlAM4nWWXiyZXKJa+fFgec 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)(4744005)(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: DUvkMgtRj6pE+An1OZ0YoXEaHd/T34sQdV4IAfLu8TXemGqIa/RbdW42QkKkBi3sCaMrPJW3L/640fwKJV77aGVM5peA0OVjyFiZzzIWFSNPhkwIZZKwVTYZ1ARbEhLtk96DqcTiGOl9bxKe45IRLGLa+ZOjtP0hayvU6qE4r2UelPr09LGE4wfjLQViEgnXD0lc6fcUIf3pxg5iBs1JDj+QykvCeH+bS7+y4C4hV52yxSqwse+EabIs7gd9XH4jauUwMIfE71kwnCk2OHKBE2fyRwTu0/b37E4jJXopKVh+BLWFm7pQqBx5vHqe3SJ4NH7Mq/qXa0Zk2nOPWlIb1eVQaTbYNcdajDhIaUxpxnAFquAgjHyaPbgXsxldYAKYU4yI/lLvx7abxIq8mkuLykTT3T9Ns6fKPJ7h5Q7eyFsC5igzSPJHiK5ZjSFAwiJmyI6sk7QvYxEUYPCa44azEr8vlQWV4cFpMqE3b0fkpQR5cIyjeEyP2z5VPUgKcQ2Pm8z08t9cuNlkqpUKkHi4tjN6arESgpZ09eylwQVAFx3l0XsrFEyz41pym4Ix8JqeD8LvGGM6z80iGO6OkPuJ03v2MS5gHE686Gpzw1tx8vzvrhJtdbdhVSgSoE6193ZOsuBHlNNuZBEOnKrjdPPDiMF6W5Wosqp7qi1mvZyBNR9qlnH7V/Fqm8baCLHqRepOKYoYwY5L87I+tuO2c4pbFHMBxl+yeOSzPzMXnSAioZaq8EJQ4w1HZ0SeJ9IiCjDQW0irhz4nzOI/yboQxOcMuntTM+c6kCqxnbTcNRp+CKY2+mydQs7lABJEI//L8m+AXv1X8V0LwUVXqEOI1lr5ewu5LkletuBZeqnWj+KLLQina3PsZD5BJ/YzOltTWmTKuY4eM+VFzuVhzf/ngfg0WEw8gMB4P2PdqE8qdj7F/h7O21F7JnhKrE0n7Mfd3pdP27a/JnNIC8q4qwFZ1c8QM+3PYAP/0oOT/I28hgT6WaVCsN+fVM+5dbRQB7VKf2RCBo8AbrzdgRy4BKU0bimaiTyAxyvtXhnwUkvVCshLpTB9Qcf032A3Y8JyzXX+CxHdXHkAfhXY0TL9Z4zVKeOg9RZ/D6nzh6gI+pOy9V78o74MfTjkoJBBHP3/2aJHBzoedmHJSrwACVjU1+rd8q/UvulIaZB2s1sVYPkCZSBaFzyyjFQ472AodiPnlP2fdgqDQJ9W3Y5zboSSmT7QETHUgoPdYwnndFwROZ34bO8ZvZdA2klO6KcH/TRk0S1P3679etPw9Ds4rMcsgP60Je7j4fRMKTYp1I95awvrdgbjGCyKn1iMCPbUDaLGb3Hhxcw8Ox6gFtl3ppNB0pG7v2nYanCcRN1PPqN9CeGUv7wZZb7ti6Ev/E0Pl6D9IYd1EtyxUdTfr1g5CPbgAqvLiIi1pHnsasBtCXfbGWAj0s87mhiNcbmFQLOFNrBolTBSYjh4eveQqF0tZMh1pGg1sJwrLZB//eSUJvsS3nUgGLelhkgZBBu+IEk3MPCFqekzwhY9nEEjZTzSJ7DUU5ZW//QhrczEWwVzmPkDZnEK5Tben45Al8GJ0BPxzNGaMAcmvGWN X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0bd27bfb-7e27-4a0c-afa1-08db7ebabbd6 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:08.5510 (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: vpWEFGKu7wilBr7P+Psc+8Ej1N0b1/1HrkEHRQI1aeYxVSHZaNR5bYeH11/7qrKFZ+YqjXdxT6KejAY+RAT7wg== 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,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770746449552829326?= X-GMAIL-MSGID: =?utf-8?q?1770746449552829326?= Use devm_platform_ioremap_resource() to simplify code. Signed-off-by: Yangtao Li --- drivers/gpu/drm/mxsfb/lcdif_drv.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpu/drm/mxsfb/lcdif_drv.c b/drivers/gpu/drm/mxsfb/lcdif_drv.c index c9d8cbb21407..a7cdd0eec7a2 100644 --- a/drivers/gpu/drm/mxsfb/lcdif_drv.c +++ b/drivers/gpu/drm/mxsfb/lcdif_drv.c @@ -134,7 +134,6 @@ static int lcdif_load(struct drm_device *drm) { struct platform_device *pdev = to_platform_device(drm->dev); struct lcdif_drm_private *lcdif; - struct resource *res; int ret; lcdif = devm_kzalloc(&pdev->dev, sizeof(*lcdif), GFP_KERNEL); @@ -144,8 +143,7 @@ static int lcdif_load(struct drm_device *drm) lcdif->drm = drm; drm->dev_private = lcdif; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - lcdif->base = devm_ioremap_resource(drm->dev, res); + lcdif->base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(lcdif->base)) return PTR_ERR(lcdif->base); From patchwork Fri Jul 7 07:20:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?5p2O5oms6Z+s?= X-Patchwork-Id: 117011 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp3082711vqx; Fri, 7 Jul 2023 00:24:47 -0700 (PDT) X-Google-Smtp-Source: APBJJlFHEfdeQL8HTBE0GkuC7koIYJ26w5yDXYBN6RUsn+vrxRs6j/7NaCavx2ycZO0PyfrN/ra3 X-Received: by 2002:a17:902:e548:b0:1b8:9552:2249 with SMTP id n8-20020a170902e54800b001b895522249mr3783328plf.43.1688714686641; Fri, 07 Jul 2023 00:24:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688714686; cv=pass; d=google.com; s=arc-20160816; b=OOHlvw0QqhTfNrhoyWIQOQpYriLeG/F/56WeZjFuUIkcfED57G4naxjlCZnuuRKWGL kKjeaIWAvNkwFjurocZvxV3cb6g0KllEjt2cfWBtEu7KHoX/bTLdEmoKh4ORAX47Sb0w 1kc8iYijy3S5+yAbEFcf4IU296nRsNVxhUNz33e6GRXyJe4qcK7rR9Mq0/aBISy/WwG9 gqSjVEEC3d0osnAMkxnZ7rqhs9YuLyr5EqaSrE0uBJ4bvOLVoKBO/cBPoe1TGpNfwGHh tbcK1SinOtdoQJhflT000d1bj0pjeOe8c99G49MaEZKo2AI2PsVRK5QAoa/VfIP6HIps ggJA== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d12-20020a170902654c00b001b9736814b6si1506970pln.309.2023.07.07.00.24.33; Fri, 07 Jul 2023 00:24:46 -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 S232151AbjGGHXU (ORCPT + 99 others); Fri, 7 Jul 2023 03:23:20 -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> 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: A7MiIztohGH+2MyK9Js/dXtqALdOJ5pPC5xpzKobdmlFGRE9rDdZJ7tZ4qUiCcQy80nTHgiHmVXQHpggRa9PXqhXVY1UO8YmmnB02ZVCGuWGdb7bPTMYv8EQSqdUhZrNWa8cwrXivCjNXfYUuhc7Vmjyv1LBLfPb+CS/7ya9PU9x9iEQARTA+KEahC/+CltaOUFB7BsA0ldLSMJAmWqj+pZ2bX30Y6a+P2vZgJOZs+nm7vGk5C7erZWgjMsi87BAxUKqu9sU5ab9VxMDxHFoLbMk6rWieH4HRNNwd6VtkcEGVa0TfhI1Pgey3QSpLcDF6fhunUl2ypzqWtHb0roRDG0MCPcCxhvtjFe5+n9I6fWhEMXpPT+Nv7hosN9fNGtiqb/J3JWGLXKa1+FVw1HZNO9IN7UYI04tFEa6yvIjkmVrVmazOBYi+WNJ/Cig9AXX9/KsyCy5EcIfsrv59A0Z+/h5xBX3S8zQYTLpdND7AcFrWZjBYPaj6Tn2mULLsiH+YGAt7+T393vyWqSJwHX0DXuc9vFlYCqM0399xZxhyvdi+9wfl7837M1oggHjJB9djoarh3RdOv4krnK01BmKaz+MAjCSVx8ov3orUG3l0TUcSFeRW/qgGp0/zIIuRjzQqZuet/fpFdJNj1IIc6nv/uRiaZwZryKQ/QB6Y9zFjTjS4FrfA43s8NAK0s9FhPFBGk224xtIKOGSzvD/XEIeEVfsyKHAuAdyGW/a9yYTdEfXH+0Q1YP/los1JEhEnmcFlJKzYSiIH9AwBavGMR+qFI+8Qf782rAq7LcMO2LtL9PHxWL7qWKR3gDv11Mpu7BZuJpNSk+k1vSjkJc+htxAu5OELUvdFGuSSjwTL5MZOSK0Lc7qTxJF/p2GnkfFu4adfJ7wA9ZpHVoMRxHKwBIuA2C6i40TmgF3pFZQ/C5tbCQ9JcniwdKRxQd6SFrmdeu1iMlfTaFkLX7vxF9dJxNm5tHYH3D6Q1+wQ5kyVRVRhSoOCMcOP2zUJIVdmcdNaqNq+3iC7OehMBk8DLwtPxoTnkei8kEGZUPyYObCqMUSzi97wuyClJZ8LfjGPM2S70uqJmojvr/8Z1pv9sXwK1mk2lw99OslRUGvQyFBOxSCFWXoE37xa4mA+j2ne9kfUEyDYRljFfj7FsZZRRkzS5FVnkfiAiF3z4z0NTkJRH8a8l1lpRolTsvvWZ1Cgpk8ue45GVog/agx/S+zjt6inJijcLRj4W06mU6UpOroZiWZe0H93wvbNdF4mHp1CGVouTO/xyK7jL6WJkdVhRAcbn1MQp8MJErjMRViaEq5iYP00T7A7KYcLaGh2aqJC53On1NExOidMdRc58eqkCVQ8DAhOHpeBWLP4yacwNcfZVp2+CD+O0BhIPcUo+nxI7bdXuszBFdS64EievVp1ke17woFF3bbrKKhRzov9rnby7Rvu5aRF3S2cpNEoAn9enMrpvCNsCfu3pI/w+0vf1OapLfrWmYh/r2AVaZjyHwJ16vao3isGA9p2SJ4Z6jaYKmV9OJ/atdvyxSRdlCOTM3kv5v58ms+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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770745691143762122?= X-GMAIL-MSGID: =?utf-8?q?1770745691143762122?= 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); From patchwork Fri Jul 7 07:20:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?5p2O5oms6Z+s?= X-Patchwork-Id: 117012 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp3083529vqx; Fri, 7 Jul 2023 00:26:58 -0700 (PDT) X-Google-Smtp-Source: APBJJlHs1EPhXTjBpaj1VpuzRveMmxe2t6aEgshiIThzi31j5r1Z4yr0DGC8OLcFNJgpfqWaAdoQ X-Received: by 2002:a05:6808:99:b0:39c:767e:bfc6 with SMTP id s25-20020a056808009900b0039c767ebfc6mr3938308oic.10.1688714818046; Fri, 07 Jul 2023 00:26:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688714818; cv=pass; d=google.com; s=arc-20160816; b=sgzQkMnhrWlUhdFjtQ6A+m2Z8pwno8KUSn5Sn2JPhE1qJmQoWp59dTaqAKysjh8PFh 5jLceXifRoPmk4aQW//El4SKjBj6+vyAdB4zdQYIg802YfRMK+sEqa2C+1IXrh8mS8R/ rkJ+wHgyv6MAgEFahvphZ5MgU+bq3b6upz703FCOQIk39XJA6xjDlpD1IaT1dqA1b0ct PIkKkDbA/Qm/8wrcXyLM0zYTnA9VBYyWs+d2vyuxJsUOCTRlSqZ4fDmEbzw7enojI3Vh Z64xTXYvPBEQstf514BqWNJ83OHmg7mzGFqtGXyAHhr0pR7UZEZo24nzwRYbgTFq7oKo UDKA== 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=449EzXD50MDqlapJVYQHXZbZyaDsBh6tefDqbEGmmWg=; fh=WTFhmzzhsO+5Q/8VFH9YUS+fINvQqtxHHn5A5T9J1z8=; b=0NaGpQhP3r9YRcINA5StzTcthi8qokmdt2FnbppTLQiWO+Sss882k01P2FM8sBLRnE DQs/TzyIAFIUXpJsmbBuPTqI5G8byIA0LVuTosG1opyHIfuEWQKadZNKuHj3l/xOO4k6 kZcQpH8Fp/VrKbvE9iXS/VV3aPTkgvLvt+WH3WLZcZycyQ7JfjYIREujgeQodePF13WX cV+MgEEA46CdpZPyTPD+WYErRv6pfE3NfYau2p/kHnHOMlBaD0x+FutZa3yWNYI3AL+p J19/t7W9fpKYetaj+LULSojYI2pWesY1FeV/savA59Ml3gR7bO3t/7/j3OqBO7ojl3PZ EwjA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=POJapzSI; 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 h20-20020a63df54000000b0055bc2561b72si3251323pgj.739.2023.07.07.00.26.42; Fri, 07 Jul 2023 00:26:57 -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=POJapzSI; 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 S232108AbjGGHWs (ORCPT + 99 others); Fri, 7 Jul 2023 03:22:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55670 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229452AbjGGHWq (ORCPT ); Fri, 7 Jul 2023 03:22:46 -0400 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2134.outbound.protection.outlook.com [40.107.255.134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8BEF3211E; Fri, 7 Jul 2023 00:22:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bzkWJLnnX6IE89idvaSnKfMGcuI4QpSmEF1PqgPkTK99ljL2mI64VNN1RLKzZLHROtJzbhnROZZSux21ewoEl2qOp2KFlVKFqq0nxnfHBqzsdmgrRS01UkmAJYIB83GjVDsD1E0+4N64VhZcoRAbFjMpg4gU8FikVeKIAw5e4VvLhV13O96RELgf3xvUv0MlB7xnN3PoAiCrzGhLBpmTMdFSJ0PvnXChcyjlp6drVlhEoaJY4bbphqQz/2j2Oy2sSVEGP7IokAOHAAWvStUZN6ZagDeF3qKypnCnlG1K2rmn7g9LQ3d2z/+opCzTrzzREiu6lPhJ4MLG36+rXt0syg== 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=449EzXD50MDqlapJVYQHXZbZyaDsBh6tefDqbEGmmWg=; b=kRjnAEQtAhpIkFacpXCF2Moqa4vJEDwsjchp28dbbVUNP5snH9Jf86VGMOJVPNpBtcoFRckOwl5w/86kMxylSxI6dC8r1Ro156h0lFt9+/86HMk1Cld/gVhk9t+aIp8GzFtJDk6qdwKi+5+2G5+wWNvIFGhapSkSa/z+DIqlIoFIw6ptl6iZDAfkJfWlrH83yP2zlkG1JP0NeIhmZ94U5qm+ZtIxgGeX9iXeXOKy8m1qIdU+EhboLR7zjCfSfsiokyzLawvqHHrNVO7iYG+3lKmTcRaj/uOHqV1ooXT+fKfs1OB+on13yE4UTqHVloAmftOuzDcK6LLXDpyAu8S9Lw== 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=449EzXD50MDqlapJVYQHXZbZyaDsBh6tefDqbEGmmWg=; b=POJapzSII1NIVMXqqx4KPsOKZWkr7Nbq8aGqukRaQ41U73p5YUvVLMsDSUD8jOkhkr09dMrpeIoBcgB4fvWhnJOoyabbITYvlxzFZgnByJP0RuEWBI5hbdDLuKiwT5v+2tzLS0vHM0lvcIR/LpI+KmqdTJ1DGpxo6EwiGoOoXO3cUhpP1Nd6HuIkZQ94za0iTZvv1EvvvT9UaL/gYMZeAn+754VpPNhpb6mDZJSSDsISRDYT611F/u+XVMFbqWPKyWbEi+GHR/Sbl1PS5mLm5N2RPx6FR8ubBgkaLrzaLmXLkSlYQCSQ3VM+YnTrft/yIL8ND5loraLAktM74rRh4g== 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:18 +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:18 +0000 From: Yangtao Li To: Thierry Reding , Mikko Perttunen , David Airlie , Daniel Vetter , Jonathan Hunter Cc: Yangtao Li , dri-devel@lists.freedesktop.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 12/18] drm/tegra: dpaux: Convert to devm_platform_ioremap_resource() Date: Fri, 7 Jul 2023 15:20:28 +0800 Message-Id: <20230707072034.48977-12-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> 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: a36ee63b-f772-4493-4c5a-08db7ebac18e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: sqQqkG4FSCgluNNJB9/b6vBvdGYv06sEb3jywUWSksApu7o4w9PpujC7AP1k6wcr3KWa5IeJqscxipEtDL6IFwVnJ866Qa/Q84c3OkoEA1yasxCturIr4I9bn6+93AjNFg3nss1XEhh4a97wowqKlWcJ3KM6htlt9qQW3HvPu7zFV0yL0uB0Uaeile9XFp4OPOSTqaSNUox/3SNiORDDHoOtjFDxK70qa+EUbTKUN9W4FvE3fu0IuLXzYhKpHz8sTQtxF0etoE4GkKsfN8qOTtjFateZJW2WK9rIWTW4Db+5jJ+GlaMWsb5LN/haV1IwTUyyOkO3E4ajCz0F6zsWLASEBN+b8ZKQm0FmpfRZTLDpdaoFqdGYPaYHHmCgSoGF7QpCuzR3gr/UElzOZLhhO2r5KHYjdj5wLN2W2Y6Wnb+ek+WIQzpJvAdCcy1toHsUHi5oJAqhDy1QkKV+ykAhuZpM+RNhtqk32zeWi5Y3cDY+7dQDg+dhbREcLTILI4R2O9XSs5QPtxN91YiimQr8w5tMxQc0AmjU+Z4ufkFz+sdxSfgo71GG9uWTCvmf+agB5Rw7yDBmgEgQrG4dVbTb/Hf1VBeVM+Uu7ucitcAcdIx18Z63tH+XDch5wtKT3ezV 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)(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: ChQCMjE7rJYrf4S/bi6DMYZAoIPIiiZNlApAlK/CQzyiv0eO/+VKdXuxBtAiBNtXntlQWwvWnHoEEWagomJRFNJJJGsf7WGGgLbV9LS08osuImgcfX+rSwtkcMwHQoaWn64uMnX/dOyzOzHvwpQ8h6+f/ugypKAQq6cTahDNa6yJxJp7litmKs1LwUySMejDNkutN3YEcQcOtMPPW/VzOdjLNpuodebcVZEoegjY0Xx3+Wp5iL8KP0DDUEj3iwkQrvEn+3NHcYW8Kb/CSk7fbCWQ8+X0OuzMXH5dmMtxCQzv0xibduHTvVT2FYIvr11KXDS2Rje9l76oqNFZH5exnZp+pWt9cTVNGglI9C29leyNxPfEd3O+PwEM/BId57Sz6DxheNGMHggyRD7Nyxt9Hl7EpmtJrSAsXHGFtSX/Tc+3YyO3mEbpJ47ju/0zIjuDMoajAQC4IbbcaBqXTj7J24ORHzBaTTWd0MxWvMtaq0zPzpAUSnGeoIEWy9S+hyPECNhiEXWjyyJMy0Lh2J7ynlpTEpg6IfzodEd4n9J21IWZORDylc/Np4vLkk2YT4LXtWexG3cHRfGlwnawUNh/DIlz2kyHerB4VGNeYATJUyMnQiQqjUlyl8l9e26paUXM1gvBglWF3kFxM4y8mB17ju+uXsXurZp2lbz+AflYw0ipNcUdtXHvjoXvAaBN4hVINQeb4cMFHRalXue6YlHJjIGt9/PEmmsmRXX6xf4ix6eqAARQmlZtvavqEAMEhSKWhnOqYlcBWAO3VDRudfoiC8KyKAtdgQpPRV8VrjSg/ReRa4IZGqhRJjfYvtXc3SEJoeeJNxAPEdEL4YXLlLmY9e0R8G9k9LRlDHaVGizaXTKBVAy6stp46JU3wXfQBJFINuxHwtiVw6VdITKZokD4CaYigHFldsMwWc951vbLxXib5jlrItODJ/rB3sYD3xQ9xLs7XHNra/NNGveOyNXOBSp/m+NEVWbtJgNjPz2XbXeNVBLVTnIIiM1xDgMOtu+7UlfjWDNOGFI8nNXOVYlFK/nZKZKy8+RqoUeMtTnSyw1eoPAxvkiJE9EvZp/r3wzjjJ3fOUOqfomFPZmMmqBK4xfyg441xDxHozfRqKCoIGp6nZfDOezaw+b8iwXiIYcFSXyMEhnJRQiRjzWNqMJHlIepOU9qABOBPslrvyiQUuQowiyeH7+aFJKekiXoSqzUl1GbbLs6qJM9yE2y1yJegJ0kMn0bFqqT+4UUy9pIzJHOZ22FemFP+BuWKvCCiv5KuOyoY54yRPSNZ+UvfY/EiTghwtYFOUIhTdU5AwhIlUNHwhfyUrwQRcXCl7sYJDBBoKLw9nhIM5LCi0MywnDi2j814KoQ/cdSB46vAaWi+YZCBZ4asKFFNopOfmjzT2/CvuL0WZ6gmcJ//5i76lhIXKkNxaglMB1BX0OGhopc2g3FyjvZZqkDAIZLXDtuJ9eE4cCIxhfBsGCU+tOqcUzR5vborFd7pEbUyONyYlic2vX/AuqScSLEzPwAPA7cgyv2O6MnbP2QzHjwRtO1YkpvZTMfJ1+AYCq1HhoUMfCx10Wumizv0mOIoUAZGyGQZ8yB X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: a36ee63b-f772-4493-4c5a-08db7ebac18e 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:18.1757 (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: AA0WdiQfesJnkJ1MksVfrdi6927HgcEsyu3HtNMU6jNAD86HlQT1ZSMWd0Rew4hMV/AGKQepsPtd4sJuUI5CQg== 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,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770745828571779677?= X-GMAIL-MSGID: =?utf-8?q?1770745828571779677?= Use devm_platform_ioremap_resource() to simplify code. Signed-off-by: Yangtao Li --- drivers/gpu/drm/tegra/dpaux.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/tegra/dpaux.c b/drivers/gpu/drm/tegra/dpaux.c index 4d2677dcd831..f120897ce4b3 100644 --- a/drivers/gpu/drm/tegra/dpaux.c +++ b/drivers/gpu/drm/tegra/dpaux.c @@ -447,7 +447,6 @@ static const struct pinmux_ops tegra_dpaux_pinmux_ops = { static int tegra_dpaux_probe(struct platform_device *pdev) { struct tegra_dpaux *dpaux; - struct resource *regs; u32 value; int err; @@ -461,14 +460,13 @@ static int tegra_dpaux_probe(struct platform_device *pdev) INIT_LIST_HEAD(&dpaux->list); dpaux->dev = &pdev->dev; - regs = platform_get_resource(pdev, IORESOURCE_MEM, 0); - dpaux->regs = devm_ioremap_resource(&pdev->dev, regs); + dpaux->regs = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(dpaux->regs)) return PTR_ERR(dpaux->regs); dpaux->irq = platform_get_irq(pdev, 0); if (dpaux->irq < 0) - return -ENXIO; + return dpaux->irq; if (!pdev->dev.pm_domain) { dpaux->rst = devm_reset_control_get(&pdev->dev, "dpaux"); From patchwork Fri Jul 7 07:20:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?5p2O5oms6Z+s?= X-Patchwork-Id: 117019 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp3088946vqx; Fri, 7 Jul 2023 00:41:07 -0700 (PDT) X-Google-Smtp-Source: APBJJlGAO1PCYA8SebvE8NPOApJoazi9HkBuHS7Sgp1zh3R71++0CpRCi9nVkd+3k9pzYG571c/V X-Received: by 2002:a17:903:11c8:b0:1b8:3601:9bf7 with SMTP id q8-20020a17090311c800b001b836019bf7mr4776787plh.24.1688715667547; Fri, 07 Jul 2023 00:41:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688715667; cv=pass; d=google.com; s=arc-20160816; b=UdRtRoC3HTtmM8aJW38K0whWsgfXPd8DnztKGUzgNvXk8Nb0m5M5O1KEdr9z0elQ10 PcLvwjtf5DH08ES+1I/fCyjEfsY3YzISS4nuqBwBaZwp7kH+QBG/crzEaBznDXqviwEW 5Ki4TQDDrfcbGxSkWnMbs/VTr7l60zwigjq9t4FD54psU2tj27zpyxG5RDvJvRMSUhUC fVZFMBoPTI3M5DD782kN6e1AsW8OARH4RNIPku+lrF86KGrru89vSqf8JpLPI3pj5gKz kncSCP4WnK3gpJ1CredicfD7fZMiQm96KfrURHr/776CDET7JGWfFsoMZPZXm2XwaRFl XAmA== 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=B+UVYT/rqgG5zKmArlTCtLu7jKlSTrIahzylYaJ8ZGU=; fh=/TUKuXtSihbRKCahUhP0s3Kp7RuFd2daguP3vCYpJUM=; b=U2RSwZL1oTi+CpmgvWT7lTJX3uRm1HkkNuIsuWL7Sa3GdqZnk9v3p4VqQT1JsYTaC6 Dtl6Qndgu6PQlCQbR4remMTjsD3iBNm8zTLzitQhrnfFMNQp5YoHpg37OR2dhreu2W9B EHHwIndjyHyDT41PSdWKK6q72UbAQjxu50QENoA9182fbwnUDhSrKnH6V6vsZZEIvC5H qu5H05lIOg3wMQ0baiF1OLYsAwDbsL6zDH7q6S7u/UFmgsGLmyuZwy0+sTEehntQBEIQ 5TcNliaZ5HDQxRWolP3DJ2uCp+oIal/aSZKxsPCp7Hd5zPvlVw57F9gZ+UBwiYNTQijD Uuuw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=LCwvKVPX; 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 kk11-20020a170903070b00b001b046acc851si2907305plb.358.2023.07.07.00.40.51; Fri, 07 Jul 2023 00:41:07 -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=LCwvKVPX; 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 S232560AbjGGHXX (ORCPT + 99 others); Fri, 7 Jul 2023 03:23:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56052 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232513AbjGGHXO (ORCPT ); Fri, 7 Jul 2023 03:23:14 -0400 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2116.outbound.protection.outlook.com [40.107.255.116]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5A5F1269F for ; Fri, 7 Jul 2023 00:22:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WkuKsaw4t9RfTCTlfXfQ2K0ZoZSP2Q/OO86jgMFjz5YHIVOWSxCd9Uz7S8M/6Cvpec/Ll8w9fkwZhMnGrrYe4bNLfTaUpPd+7CDBISUbfrGM5YKGGhqCNYi1OtQb2IuD4+pbQMrmkbPM1K4C1u7kh5gFRPUoDqc8HTkj/iyp+AoTOtgq7bmkFVaIFMuJcq6Zrz036bsJVBHtKxdBz9H69SZaKtopK6KO9U48cnJzbQJboDt0YCr7N8nLjQ7QwC8itbLVQ5VzLnihKC4clFgblFlF6V/plhvLINkAySCvMluZlcEgL4NWHmLpTF5sswLCVDzq5vD3RJIhCHXegIHbpQ== 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=B+UVYT/rqgG5zKmArlTCtLu7jKlSTrIahzylYaJ8ZGU=; b=Alv4XPT1riPg3QklmntaPsjJmPfvd999tSEp1ubMQz3Po/XT1+OGyjL894GZNyrMMToAg0BwixYQp1Q2y50NPT+yIYWgwKdZXuvpwcLVfAH4J9gr2sbUgS9CUJ+KE815HHUt55kBzfOHpCHYfd6b0PXuQo/EmBlxpiM/bKceSc9SwYbu+bJbnT1gw5hnS1qFIroOxVWQNzvpcGZVuGz5uyAKWcq4TPvz0XWHkvipM6Yp72JpXCbVmHO5elbuKAmc0t8TkgWYxH3uyiFXoIptBqcDKJ/DuoE9nDb0rwmYSzupOw3pQ3L9t+fOyjye37kUL+W5HpqBNpMV6YffcMCIgA== 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=B+UVYT/rqgG5zKmArlTCtLu7jKlSTrIahzylYaJ8ZGU=; b=LCwvKVPX0XMxYX81rjOJHkTU4krXJ561h89qbKKejO2IhQGvR7T+BhhV7h6Dk/RiaircyNTxDCmPXJrqW601OX2LPgqVdgCe+LPi9/MZYK0wY9Is6885DbNcIi3V33w4rDr9zMbScruM6x11C2cRVN6NOiHTbdfd6q3d9qa9ABsbhYnNtdfxWzYqnLopIpR5q1scEK73N1B1qVYmYv/dU1O8ZWJHY3x51mGFI3Txc06Zm7hhItSsSJpH7Y1KBi6hNpe0eGp+nGgYOOxT/yg8NeZvk6xWMeL3S4Ie5M5nQUZKF1nMkNafw+WVgJ4o4uIjz9f7kd6/PgU37Ht22liAmQ== 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 KL1PR0601MB3954.apcprd06.prod.outlook.com (2603:1096:820:2d::9) 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:22 +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:22 +0000 From: Yangtao Li To: Yannick Fertre , Raphael Gallais-Pou , Philippe Cornu , David Airlie , Daniel Vetter , Maxime Coquelin , Alexandre Torgue Cc: Yangtao Li , 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 13/18] drm/stm: ltdc: Convert to devm_platform_ioremap_resource() Date: Fri, 7 Jul 2023 15:20:29 +0800 Message-Id: <20230707072034.48977-13-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> 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_|KL1PR0601MB3954:EE_ X-MS-Office365-Filtering-Correlation-Id: 1e037f68-9cad-4e1c-3271-08db7ebac43f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: NKCRamd1pNDC9dwTnXeVtjtxM6cUJNdoLOS3eOAkQjuae0kFYE4YGAawegOPBncabX1JfaemzcOwvGDur3S00uZLL8jkx3I9614uSN8HndHFJQeaUlLJZBwgsPQmMBym629tjs2Vk5aBau7qE6z5zHTFztSBRBT9/b+F1FPL3evt8UapY9klTp0ZGF+9mJrfrX5i8QZWw2UrusAEh4cGbvWE71dHCb7e24uUf9lZH7jztihYe1CSNHgSmoPoE4W8blq8vr0pFmcabAEG9SWjZLTuAZI9JX/JQ2jPruFf/e/rDsVozvz3nN91MgzOJ+wv/OPBrYACvjAojeBW/PlwKtxr5CqCbQSpUQx0zrpcsZrhs78RWmZ2QGNQOZs5SyBijRHU3bVy1NRSxIcNIDvbI9pGuRqJt1xTQWWBVKWqOUWRr5O20Zv6Ce7DiFdUoYxx7X0luNtMDYsYEtVv56xGfBKCU3rYxSuHWj1F9BlpoyZDnU3WrcUzQOtfHn0J5AiKa9K8CeoxRdqHBw9kKSIofqcbh1SsSuQBb7BEyMzdO8L/Y40b/LMxl3ruE2uaSz4PdsPaLbmrs7KzB6eZsLZjEAJ5ShBLw4GYjW7cIjQdXPZDoaCE5zeqtXf2VjBaiWkv 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)(396003)(346002)(376002)(136003)(451199021)(4326008)(478600001)(316002)(38100700002)(38350700002)(36756003)(83380400001)(110136005)(66946007)(66476007)(66556008)(2616005)(8676002)(8936002)(6506007)(186003)(86362001)(4744005)(26005)(1076003)(7416002)(5660300002)(6486002)(52116002)(2906002)(41300700001)(6512007);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 8+XwPCFZ9xlFzdTvqiXh8PG8CZp5zEtoSlj+VrdVEVbKJ2ep2DEAz1zJu7KkkGtS5pklG+GsuewqyXSwKYdoVILR83OYsEqIdn7KwiQFyOlJHGz67tzgfwXGkVhq6MhUEi8BaXtZ4tHYn2eU0piBBziPGvLp5XgAvyAVp983Ae/iDNUFfw1IVn1fF8S6v5rbkQ+HEquGpcYWtHhUKKY6EM7okOkvZUBbZh0IYuwgpp6+OMnAtIDftlMO7qxFQ5V3a3dGyTWsOkjRlfOJWfvGbZNkm1ZZWmGJb2kCd29q4pr9S/1rQdcBC82KLwS/+kHQlu2mdQ2b5Fkiofaoc9m+T2CKE3R8XvfHHnEaLiO3LWat7Z5kPHm5KhaTmbzSeucyk0aZ2AAFZ1dHwa+BrsJ/2nNqI54Fe+0wGY9Qr9E1SF6SBH9AfzybtmqVUl0qVv1K7QlJu84vbPnZtOaQws4U5/EznVnIXXIV2flql+VvCS6rRexM4/02Ha5sIFl18ZtH1WHDard/jYoWWACB3DPZR+W/aVMEH4qDUxRbE3gdhcyGWoeRDaFcahMs8NQWjFWyLW8AI0UYm1VahY+12zX4USUdAUXwUYm0vch6tr/LoOXn4D7u/82kD/igWehPPUd95DU2ySfZhEpAv3nYHUM17Ex4RmTu5uzOfrIqiLKwSEoPjdZ4oH75OkV1piB8UEZX109u6khxiAvkAh0c08tCS9CANLkY5lL0xqxSWX5dafXuD9vIt4HxNTsmitcFN2shB/C6GfqMiSk1wiXZFn8C6Z0N+kS8wvInUbyKW2hLOvnc+AkskoHUdAxYtuwX1VSq+i+cEULTY1jlUsne67cKzXhFWJAA+vh4Ihhk4RCh8OUWi+lRZf7jjhweUimzaiwcvDnSe9+/cao1DADYTdqLPiOxyrWX2C3Y6+Njly3QtZ0+2XqQv6oG4fA6ZBJg/HfH7axbI2BE+A3S504nKv+Td00FfrrFvdpQXGj6aAhhI0gGmtVwkehzyxpY75qkGHulOyljKNZ2gR0jX+4mauagtff05o83PFQrZL2nSBRnT2M6VmxV1pZFaN1hRakA8OjVoY5rd8NTE6upPBiEDAORXDw26UCySu2LCRVjlxYKtWMd0823dbpq4sd5JF+ziKMjJMenMYTh8+PYPsie8fs9/nZdA+qu3TyGjPiCcYxRT8NTu36ffBLrOS4KDIBPUxrNUwRHo3BqzYjMUsqX6fwCKxWEgukG57DuDd4aiH15jvjz6BuJYXHQMn0gBbxJP/XucLZNByUq4KEG5Uwao0Rrv6bfeUKLuSjU6NULVEEclWpaxGr5odCRF7jWsWfQ6WnW2pHczsRidNUsTVj7lXCcJBZonaXM/uk2JV67qtPaPUu2JKyowloF3w+e28lK3gowLzj0p36pZ+dczoWLP8UlQGPzr09rQqIltUeZubx5WgVh8YtW9zBBzLv3EtITqx4RZZlJXEY7sxDEYhAkuPg2/XIUrgGbNYUgGMqz9iM3Zzy9j0CEo1fnh9ZyxO3ZWJd9o1faL5VLNjJfAeTjGp5yxib0Asr/9XtTjE0RGGGCVqU693LRbEgOCehTwqIcBj+B X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1e037f68-9cad-4e1c-3271-08db7ebac43f 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:22.6650 (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: A9I/S8EYVEs9um+QnfghzN6ztuMNH4IWWhU1SDik08pfnHw9kWS9LYU2OV3gP8m7RsWzBLFCVHc25wW8lml8mQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: KL1PR0601MB3954 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_NONE, RCVD_IN_MSPIKE_H2,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770746720004853659?= X-GMAIL-MSGID: =?utf-8?q?1770746720004853659?= Use devm_platform_ioremap_resource() to simplify code. Signed-off-by: Yangtao Li Acked-by: Raphaƫl Gallais-Pou --- 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); From patchwork Fri Jul 7 07:20:30 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?5p2O5oms6Z+s?= X-Patchwork-Id: 117014 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp3083799vqx; Fri, 7 Jul 2023 00:27:45 -0700 (PDT) X-Google-Smtp-Source: APBJJlHMVwJ/djOOl65XIMdbtt3KgNdeMpnn3RcPN7g0F0SBAEfA/3D9ac3FqZiJtLqiSYs31jLd X-Received: by 2002:a05:6830:1683:b0:6b9:107b:5978 with SMTP id k3-20020a056830168300b006b9107b5978mr1543689otr.27.1688714864878; Fri, 07 Jul 2023 00:27:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688714864; cv=pass; d=google.com; s=arc-20160816; b=ZAhXbRUCG71XHomUtPk95idZSb+13h2RBqF+BY9VN2gSG8y8L2kAK60CpV8f41quaW htlJYWjvagjgIAGL1WlPwL+r2fA7uZLpEckUVAPG+jbkwc7DXGU8drMbZplnX3jq6ekB 363z6GtNZwkP3da3kedKr1NwdfRuRDeVSFPSzGcgYuONJnwL6k2kW9dlE8BioPCak0G3 LJ+tJyplPpqXT803wJq6/ZJZU3tL/9/6a31LQqZxetEY1m/6qdeh3Nximheta/9tvRVz ENs5GXpMc6NOVdG2In8j5mLdlphGYGtE8vooOVw5SSpEaTyUaBcEW2BLaMlAk34ekpse /kGg== 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=hX8d3Rt/yv4cLgjgnhQifBprqlClsb7HOd2RAGU+eVU=; fh=T066uiqTjxYahUH956oepKMkel8Bcf1VtzASGxEcXvM=; b=NNNGaxOSwJDe1mI6eo3GCgvTD+T8AtqTBqLrN+lgFciPFzGZETJHs0d3XJy+nYiCrc Nk8rpqO35hqcAqKpkurIyLhRwBS6L1eMUz/OlYrlcDQfQbFL4I1UGj2SsVYH9hY/Yx0r yqT0zggjXGvQI4/f50DRQJ6o5pyJUF8Xa9rJ2fV1101Q7TJxVSgu094kILd5x77eXa2x CHTinodVbh7gmM0FYEksxnHHi3jDKL4WSWKKw6jtMepVH0qL1Mp/nkgZL3ogKVG2r+Dp tTypf12Ry5CLIlvOSAAsYzakQAlm7GWipu6wuHwCvAnWW72Sio4tm2dAgdwCUaFzP58X Lk6A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=aetJhNHr; 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 j6-20020a632306000000b005486a1e9440si3157119pgj.780.2023.07.07.00.27.29; Fri, 07 Jul 2023 00:27:44 -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=aetJhNHr; 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 S232507AbjGGHXR (ORCPT + 99 others); Fri, 7 Jul 2023 03:23:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55934 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232438AbjGGHXG (ORCPT ); Fri, 7 Jul 2023 03:23:06 -0400 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2071f.outbound.protection.outlook.com [IPv6:2a01:111:f400:feae::71f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A352A210A for ; Fri, 7 Jul 2023 00:22:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ADTRpBSOn9KJO4VW4l1ZxiV5nNbYFq+cYnvxbSYhhcXci/e0LZGScvrabPOZYj/ufH0gGYSWM6uk4Hn/jaBMCc4dt5ZTb7UoT3Zum1oyraFQV019eq7gyzChbPLNUTJLOmbNPGDUw8Q1xlZq4hDX/G3sJQi/KzK2076oVFswrq6lXV6oRhJQhZm3OY22dzfV0xvJIc0UHWrg4dFBy6NDbiay9bCMytbsCPm0VDx9DUU3F2KpEq4EFIMN4FPR80WXsqJZn7TKD8VHMU79KP0QLLdUNcVpnaAGPYuNXGo0q9fAH8iwE0ev5ZZQ4H9QgCnIQSMbiBeDaVvVdejuAEKKvw== 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=hX8d3Rt/yv4cLgjgnhQifBprqlClsb7HOd2RAGU+eVU=; b=CANvE+MxPBkb7IfYZpYPRuiNStwGrj3Dnk3z2NlBP6cxrxPGxMZs2YNuzNUrJsOxbuJF8fxSz/s11IPMmTZ6HAXUMk4Q/1yLAyNw3/hSbMjlHZoZbmWWPDImsxxd3jt8j7yhKXKqWl1cTLkes7DTGNqh2K1Ynya8Sj+k1W4ydhEHgyFyenkK6QihV05EQYmhOj+ocvtzSMV7ZPnbEgDJLwDa59UaQgtlzjvuxZqw6SMskFJ/UkgGu9uBEsSjZI6KoAOvQWMDIPAt9buivgVluEk5J3v66c7/nSK4LnLKtITBCrs58sh4SKn0fKk/gJuvw0hX1IUYjB4FGBTyaAtSrQ== 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=hX8d3Rt/yv4cLgjgnhQifBprqlClsb7HOd2RAGU+eVU=; b=aetJhNHrAj6oNnTZvjfksIwG4JllOoswEKqtNxK8SCIye79eWhAtf4gkOYJuavbGJC7+ljxEgbZcesPmlDe9Ndd1uj9+uEyfQTykGpnUANWPnh4QvhUoy/Y3uQmbPd0TTTYhITKGY+uBCXa6LklXD6BChw7uxZFE0qYWLs1eo1UMFDvxzm3NLnn5DDxnW4wqIVcUxRpK514pNarygbFH+zU+rbjLzDQxbxxT7TZOgWTaOLUpDwHw3gof+x258p23G0k3qsAjPGN0GieKtIkPpqB+fCdv2IG7lGziCYTfNJDrYkkNMbanZg17e+RkyS9U4FCE441HIoPmL+w9ro3Zuw== 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 KL1PR0601MB3954.apcprd06.prod.outlook.com (2603:1096:820:2d::9) 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:28 +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:28 +0000 From: Yangtao Li To: Joel Stanley , David Airlie , Daniel Vetter , Andrew Jeffery Cc: Yangtao Li , linux-aspeed@lists.ozlabs.org, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 14/18] drm/aspeed: Convert to devm_platform_ioremap_resource() Date: Fri, 7 Jul 2023 15:20:30 +0800 Message-Id: <20230707072034.48977-14-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> 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_|KL1PR0601MB3954:EE_ X-MS-Office365-Filtering-Correlation-Id: 98ca81fb-a898-437a-03f6-08db7ebac7c9 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: K8+2pVw7WfpvGyWWuyHxRS1412QtRc8T90OjMwUBRx6lflp6gQpSC2JBaGm9XTFMKRPz6A0tJQjj9M147KXV7IOxhnLEHurOOCkmzNQ7T2Rnca7rzIcim+L32vzIkEmwbBQr0ZK9GbZRIdw1hrdoG+2EMOopfsjoONOOIEyY9ofXS4H4rZK1b/XVL8tay2XXG0Trf2Xrn5HJfzmEFTsQmW563Y2sJTZ9DlwC01bD8VMR/d3PUm6ykOpNdySSqoaQVGnQOWnuJjYa0cHtXZIWMJ8P40onGfZRb/a0h1s3XaiHWFbepe38GW06tOKFfj6jpy6vWLfZoYOvzDfdA/Nm2a1xCyv3XEz+X00AdMmZO2HvbZiXMXG8mjn+gBxz4Fm5ANnTQVx8tgoJcQKUwOb5ch3iDunmsP/OXvyJDQHK/vzs5JDsDbNaU2L0bwzCgmRotsomRYUuDeHvQCxog+UHlDnptHfqwG5fr+hCcjDXGcFHttle0qX9TL58WitsT0Cv4uw8jog69FdGX2b7f7fDsGxxkl+gZ9aJBrPHvtXF5L/COaJc6GnvCzo/CcM8BpsQoYqMtUcZnJ2MYYs8po5gz3wwwKdXkWnz6w1297SCAQtUd9934BcOOwBGaaSdnQkf 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)(396003)(346002)(376002)(136003)(451199021)(4326008)(478600001)(316002)(38100700002)(38350700002)(36756003)(83380400001)(110136005)(66946007)(66476007)(66556008)(2616005)(6666004)(8676002)(8936002)(6506007)(186003)(86362001)(4744005)(26005)(1076003)(5660300002)(6486002)(52116002)(2906002)(41300700001)(6512007);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: RLzLwAI15JN1wKnm0/TtuMG7iYMBBAeolgJYrTJqudVv3B4PRiiKi9alfb5VX+6MXNukRBORTXxRcVFWywvYpTnxzkQ94YnzitUkcUnz/MpfsQw4AlZMq5GEEnuTtBTQeNVzc1qcF3n50zx/Vl6kefzY1SttA9zzMo0L3UqteUHMtD1wD3FdEci9oQw01XSuOrOcvug/a5cTL15TlBSLjCdXpJ1yb4RDHoFUNbUMQeSfDyxGNyGphXH/mGbgr1cUrUut/CYkauiA9v2KQUTbxkzjxdaI0z72UbRNFI4W9GutfzCwiu2p+Q64ZCc8qwSwmDS1zuULpB+Pvm1wBYjz5U/vdairN2AiBn9Kz/5K5YpK/Uvn7isNYg3PxVPq5B6FkOpl4a2/pE2lryoJt75S88TpYqb4qiiMrhgIvf77sLQusqsuajIiHzi3alrCwXL+ipPprp6s/zq0gAniPo4NsfS9wL/uzyIJbBWcKwKAGCyga2MRL3kKMHLfBp8ZGHHklETKrQ7BkQDBP4pRCnoMJPRNu6kuPgSizlyaPYZqaqI1AHJFWvQsLLRzgCQ6PtdIpK1SgbLpwayZpl3raJEBUS0mR5Fk09pLeb65qIS6icDKahMyAaRHueekW7TgQc+wVTfW0tKbjoAqc47B0lk0Hib2ifqfGn1Z1693YiThFUToyZ03m7Wvj67BDGQJbhlQiadYTWeERIX3L2hprpTQwJaKNWAdMpK77VCV3NAuvyyrEhtFOGdG6nWvl+HtUVLSq4aiyYFCPteFiVJaO1wxPdR+p5ZooJ40Fqbw/7ahQ5R04RxNSJoyuC5PNFPZeEkUL/Z0deG1T1rrhLd5ttTyg60YuYZZM5eJGc9X74QsG8GJ3asevzZdBqPoHKJ0sEsIxSMieQUOBQ78pEQfIwxSX4de42njgb04sgW6iZgZgJpJrRy4KxpLsWneq1eHGmI9VjOchgqnAydIVGNzzeJZ7HwNcUki6gbfeEFUyyDyit8cQDOJjSE5j4zwUsfgxleIue3/uqPr9QvBEHuzujp02uwnvC3W9jcke2itK37sIvgkCCU5wyS6n9cIDgj5umI7qET3fV/Lcv5oztyaeTVxdpiiDUftg5q4XMJs2O5gpGTmWvq4r8DBiaGjmDSHgyNqD8anr/k6Msm4XzlgPEOOUU2tMuJPBh8wIyuf9L5KB9r/+KvubxEkEVLNPUjYN7EhQVWliaSmNJrw3E4HzUsDyc2cZQlrBms3JpWDqWwFJseTgA4tFCO3BCAHO6ugVGSNDRpltGwe7k46VPXJwmbLyPJuJIN5upB4yV2yl8FqH0bxW8PfyhhWxmisdV38tQh8Al2lYR4oBRtxN7uVxp9x2U+pXrGnhifF2VI/QrMxpeh+UbkFcj2ZL85p0burcnakxQMe87S6IFqge7CFpvvvLbcvrFNKjqjOzxfQl1cjBOOBvTCyO/eQaO460S1V5aWZ6deUecaApMIOBhWWfpQxaur1/PkHLGhzDhnH0Scuu2tZcITB9dN46hutCcWHGfnB7T+IhCxvMhVitVJX9rgBknYqGqgI6T2CY1nGRhsoweh5+W3xIMaBYmL8G9I7Q0fC X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 98ca81fb-a898-437a-03f6-08db7ebac7c9 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:28.6081 (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: aMTiNHQ6mwg+E62Dg2vWV63sFjJQFsrO/attVtfm7WQeSX4l2Hsh0ZN9771eVOUX/Ivg2xYUdqchdWpBm9oe6w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: KL1PR0601MB3954 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770745878187152538?= X-GMAIL-MSGID: =?utf-8?q?1770745878187152538?= Use devm_platform_ioremap_resource() to simplify code. Signed-off-by: Yangtao Li --- drivers/gpu/drm/aspeed/aspeed_gfx_drv.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpu/drm/aspeed/aspeed_gfx_drv.c b/drivers/gpu/drm/aspeed/aspeed_gfx_drv.c index c8c7f8215155..d681248f098c 100644 --- a/drivers/gpu/drm/aspeed/aspeed_gfx_drv.c +++ b/drivers/gpu/drm/aspeed/aspeed_gfx_drv.c @@ -144,11 +144,9 @@ static int aspeed_gfx_load(struct drm_device *drm) struct device_node *np = pdev->dev.of_node; const struct aspeed_gfx_config *config; const struct of_device_id *match; - struct resource *res; int ret; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - priv->base = devm_ioremap_resource(drm->dev, res); + priv->base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(priv->base)) return PTR_ERR(priv->base); From patchwork Fri Jul 7 07:20:31 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?5p2O5oms6Z+s?= X-Patchwork-Id: 117025 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp3091994vqx; Fri, 7 Jul 2023 00:49:27 -0700 (PDT) X-Google-Smtp-Source: APBJJlE/8kkwuX+nAImUbY1fqOF3aDnwlSs/wW/d1qG2TNw0b83sHL3XDqM2PGk+jbUh1Wu5vHNr X-Received: by 2002:a05:6a00:99f:b0:681:9004:3a20 with SMTP id u31-20020a056a00099f00b0068190043a20mr5230542pfg.7.1688716166770; Fri, 07 Jul 2023 00:49:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688716166; cv=pass; d=google.com; s=arc-20160816; b=lPPMMtOmmS8wIINxbecqRpcA4ZVtmSRuKFrL7G/ExZk1bDSQyD1+ZbHFc3J12AELAw Mh2ZkAFLOksPk7ClPOYNpQF6wCt2OzNI9w+I0vlxygoJq9kyGmOmRz5kkzV/59HMp2i6 80cVL7Rn+79Z0TGEsLOwbM0tAiVdzfJzw9MmDFjDEaRND4y6Pbm0wlBxN3xXGWTHOfgw WU79swKwgiNinv3gdVt/sXT37aJw9qpvCrKSr8AsvGKhB5n+gRP8uhxW7Kd4gsXtQ9EE 0sJQ//lklTSV5yNjESk+xVonjRpTX7gNlhKaCprX1AhB7s4ADtzs/lFkOMpkdowHU6zV l1Yw== 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=6lPI3daS+UM0ggiLDXQPd3BbYxuHM1WOWXBknGZQuNk=; fh=WTFhmzzhsO+5Q/8VFH9YUS+fINvQqtxHHn5A5T9J1z8=; b=BNOhHHJiKiz5ZTHS+UUHnFgSkIsFDYWWwCf9t1xVBW2VpIPvWxeJuUTjZuSeLYI+LE n83xVF4ha1eWcOzoGvGjg24/FmO0bMT+rZJh+4bmbuw9d7vl+rxLPx8X4+K+A7omXWnT ECRwCz11+Uviwu759XEThhUhIW+xDfJqN8ZFO2Bw3swMqcAt4dpnaXRYhqvw40MdkAh8 JSNrH922h8/bMQ0fvCa0tuBFFPaEDzKTS3x4gIU6Dmp77AwnOvJ0yz1T9WNCKbK0w0iQ FwNRc+KzPCMscrDnMgvE9ugbs/qlmMxJ34BAdjntlaByVEwZshU+uz03TUHIN2EVLCaF JNvA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=mFKVO85I; 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 b20-20020a630c14000000b00543a89c95c2si3102170pgl.207.2023.07.07.00.49.12; Fri, 07 Jul 2023 00:49:26 -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=mFKVO85I; 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 S232406AbjGGHX4 (ORCPT + 99 others); Fri, 7 Jul 2023 03:23:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56632 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232055AbjGGHXw (ORCPT ); Fri, 7 Jul 2023 03:23:52 -0400 Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sgaapc01on2120.outbound.protection.outlook.com [40.107.215.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 44078269A; Fri, 7 Jul 2023 00:23:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mEFF59vhho6A4E64kYcLeSoZM0hzBVM3g7uGzXbsUAgRdcXkkYRofMbf/lrazDQTsdFZBHKWXbry9AMNpa3IeA0Vr1cAbaFAQtnVjFpMqY3dorgSX4QRhUmB0dHd6z8HJfF6lBLgueqFarB4ZVZh/mtHBCXsL9W4ef/urw3h3g70Echj0SSrw5IzN1Aog0eVTL5taRnUIHlXZ14HiTq0Xlbg1n81Clva83afeZlEsy9m8SATKz7nGUX2QzBPCJ4qMD+QnUi5+UtgTgi/rN3fxEZ9LPmBjcOEEq3zDlsgw7UF8Pk/t6tBiXwSV6j98tsSg69myDhGrC2fzaJd6zxIcw== 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=6lPI3daS+UM0ggiLDXQPd3BbYxuHM1WOWXBknGZQuNk=; b=R7lmUqGgvb9JBphAMtTmogAn+ncKeyc9N2Lj1+AuKcrKMCS4tdm6s59F2YiludBu6OhsUxAFXgb4uHG+jB7PPKyWjIr0d3ClfXqchHutTxnS2VCS+RSRfmGGyKpZqoUDVefo+aaVHmXKyiXUVjF5ZCLVVsLSg9Xiss8onofndWJtS7HLAy4iaLQZl0WgFW05qDmXDQbg4+rUZazvXAkUQZow+Ve8WVH4NDjX4wIAbU/hu/tDOgBigMopFviGG5Wt5B99q+hR9pBKU8zxPddqUlpKvhalWiK/5m18IlcAc3LnwGQSe2pv3O47N627PB/HNHeanXz3DT7zlL5Uy4UzGQ== 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=6lPI3daS+UM0ggiLDXQPd3BbYxuHM1WOWXBknGZQuNk=; b=mFKVO85Is7y+wu7ax9XevM8opExFtWFcd8gVerpPWKzNmguXrzI0+EUjMSpRzkeS3U2XRXpGjXJIpExiwhHPEzbzv9gz4JweWm28dxVaNlbNH8Ivr+oR5HW8jCwPMlrhjS1ubMfwEcYKvstYAID54/LzoXcPZ7zDK6CaapbUe4jOBQTGbFDW9VK6vkvEVSTlkwHXYSt7YXeRHruHClwGwQS0D7dWAcoAe9Gb73wNmYevsy32wRNc26XYjcshaHqP7ax7ibEiQ/CqWrVbZ4xo4PzBFlsx/LjpGPWsXxONO9N8OeUnV1Z86pCmggO0inLQg3Py1Kvhyk/qfOHt9kGaPQ== 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 KL1PR0601MB3954.apcprd06.prod.outlook.com (2603:1096:820:2d::9) 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:32 +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:32 +0000 From: Yangtao Li To: Thierry Reding , Mikko Perttunen , David Airlie , Daniel Vetter , Jonathan Hunter Cc: Yangtao Li , dri-devel@lists.freedesktop.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 15/18] drm/tegra: sor: Convert to devm_platform_ioremap_resource() Date: Fri, 7 Jul 2023 15:20:31 +0800 Message-Id: <20230707072034.48977-15-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> 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_|KL1PR0601MB3954:EE_ X-MS-Office365-Filtering-Correlation-Id: 1516ac7c-f56a-407b-f5ee-08db7ebac9fd X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: U+WgG+oP9X+3L5uL3FEjRzC3gPfUm1qVavcGALaJA+OwCB6SmAWJci5zA7+gdXmPOCJVGwY3ECS+FhOW0auHVKLraZYwnEguYv8zXd+i0UbFNCmw6UjT572uWZECwYFQIP2KvHSAbNm6rG7TYnGfdpOsDOie+tRcuqCT3wf3EE+/oe8y1ySdhDINwpYR70jfZrUyy/rKB2LI59jFZKQCj/E6MWAeugSgMBz52M1JdoGPDV8WFYh5VHFE1SASqu1p2AcrUqNH1EblQ2uq+L2VOGlqjXOXzA5323V3zcxaLK8ppc4PkRB6OzuZ7yIEXgF8cuzBQHUXPXn2vhtCyk6X1f4lM6KoNv3yKuxMeFGla1jxBtYe8sDCDLxO0qssmhPNn2CRg9IoGDw3/yIaGhmQ07ejCo6thMWy9UQow+b4iKTErmXH2Y5Ht281p7c2iOEEJjmDeUcvvhx8L9KBxQXW4fg2I/1ka2lGvhh91ZLFJFPC0r+f1m76moZqHr6yJyl6G6sRcZgaFlIPX0XFWysemZxq5xyGfLmm3ScSPZR0EsQLRHzxe0czLUKuH/SxnJDISmsF11w4T76dYmX3nOgbrq9BPwY3DQaQApQl1ENLM0+HaZuG3Tz+yeezWWCoi6Wz 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)(396003)(346002)(376002)(136003)(451199021)(4326008)(478600001)(316002)(38100700002)(38350700002)(36756003)(83380400001)(110136005)(66946007)(66476007)(66556008)(2616005)(8676002)(8936002)(6506007)(186003)(86362001)(4744005)(26005)(1076003)(5660300002)(6486002)(52116002)(2906002)(41300700001)(6512007);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 5jBYFMHFkmOo8hmolyFPLTxzcfiX3Jcr/lJzrVKcl+6sK2iAPU0tFrohryDg6lk8j9mkNKrvkaLHxG7UDtkUGBoBxoula7uTgYqd6HjxQVSK4Se14b+KbckoQY+08q8Hjkopgt5VaGVudsnfLHrw/q9kC5tRfCAy7utW4OjAzvtp5HxLxx/hxttHYdzMYm7xVD4Jgi290Z2eUff8hKGne78oRrNxSbcH1VTzQuML/TSz0TkJS9IR5pZgaiJkceq4/kSaQ4llPI2jEYpIAcDQeT3uA0TkaAJ2KlLL92P6ZQoqo15aR08155FapORQ0xV/Z+wQWQ6OcjfgcDO4l3XmNKGdVmC7+0lpwMt+bdud6jFQOS54s2vM7PeVdbGnuU2dm4TI4pz9iqA1z/rjL4eqTzABFNK1c5XNVFkPkIJg9vI+/Zcq4eJOTl0PgNzdjwgSaVK+fEyDIDe4fA49S0vPbX87w/Gsz+MmETjvUmSSesLYgTkOoIpNJhMF+ij1W9NUcIG17smJ1dt+oTw1yvazBglR1Yrd+VZoF0u9qQFJRB396MwF7qzn9Zn36QQ4Ne8S2HnZakBuNxSCOiG7dBzy1bztNyzFF+12eoYfBfpW7Si0dzQ/G6F/5qQ8e15x2Vqy6KP6XUYPeowEVjAnGl/FlVggpf+hFWuECSTwgCPoBSmBMBNBs6DO1bsABc/lk+GsTE21rxjLFm1HgCWxRd/0Se0sECt0J2F+FmlGed3mSyIs9tpVRAwXua+LHu5cgOSXxmGrZS7FSg1Bt373UGBXYbb0XKFLOJDYxcACs9DrSh97gvRMgz6mh6rBYpHboFhl8XihFbUz1exLhPnq+0ibrjgHb0Iy8ORoZ5tWilLlrqT00578zn6NKCCcj8HYPdGfJtQ6ZCvw/yhn/nhfc362EovQ3FI994DuXrPSmA+vMb4fjLJn/L9aq5NMInsS+M/7O4qGjL+kRh8FeNNQc8QcD2oicf8wDwzALbyysCBjN14pagx/KYH4GnbUYGNTblo3f2YXqFyRddRTfknsVme6DGiV/LddxKZYWZzywkoNtacrA2m0vtGOFDqlfeepGelwvJHubGrg7c2EhzHTuZPKmzKh3LUdCurgMbBio2RJ7MLJ1qeaTDfKuDet3HFqZsw8et1kar813oNy3XOJTsGYvm823Lu6pcEiP7LR6Aadf0MSNOsVd3+78GP8OTnRyrO9iMzKE51T9/4hkMRELxox/9dNouASLt/R/SgaBHIZxEbGMdU9NZmTvG8ozAnqBLm1aEryeNoVwEmF7jGMzDBqAVxRiTuQeLumk3C1u9EtDyHMRwd6sXNKv2ek7+w5DViW4VVtgdchvWCU7R7z76JwoflqdJ1gRBCKpMCaE9ns2BRwT+QbUj0Po4zlXgY+GHRQN0a9DKIGqj/yluowSi7LK10t1spIycOVO2scJX3+n257L0ZTiFkQ75TfN4xDYjyER01emkBm8u34GMzR453IGgEHZc/2XD28fs+Z87sHIV3ucmr92NnNIJbK8s2eWJ+65uCOTf0ed3Rrwwmrr/MArBlwzPxMacIDAEzdqj5mlp+Yv8aMFWg4rEfrVQ2s7P55 X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1516ac7c-f56a-407b-f5ee-08db7ebac9fd 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:32.3103 (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: ZHQcM1VlZfBWbINtpEAgR7kBSKKnPjlarm6LAPNSVZiyAaTBbrMuq6eMmdfXlfx5RNk1XVayX5HySOuYVuPD9Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: KL1PR0601MB3954 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_NONE, RCVD_IN_MSPIKE_H2,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770747243169009696?= X-GMAIL-MSGID: =?utf-8?q?1770747243169009696?= Use devm_platform_ioremap_resource() to simplify code. Signed-off-by: Yangtao Li --- drivers/gpu/drm/tegra/sor.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpu/drm/tegra/sor.c b/drivers/gpu/drm/tegra/sor.c index abd6e3b92293..f23d54626883 100644 --- a/drivers/gpu/drm/tegra/sor.c +++ b/drivers/gpu/drm/tegra/sor.c @@ -3708,7 +3708,6 @@ static int tegra_sor_probe(struct platform_device *pdev) { struct device_node *np; struct tegra_sor *sor; - struct resource *regs; int err; sor = devm_kzalloc(&pdev->dev, sizeof(*sor), GFP_KERNEL); @@ -3781,8 +3780,7 @@ static int tegra_sor_probe(struct platform_device *pdev) } } - regs = platform_get_resource(pdev, IORESOURCE_MEM, 0); - sor->regs = devm_ioremap_resource(&pdev->dev, regs); + sor->regs = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(sor->regs)) { err = PTR_ERR(sor->regs); goto remove; From patchwork Fri Jul 7 07:20:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?5p2O5oms6Z+s?= X-Patchwork-Id: 117018 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp3088421vqx; Fri, 7 Jul 2023 00:39:42 -0700 (PDT) X-Google-Smtp-Source: APBJJlHhnaMdWlabif2ud1/DnHQ+193AvTWnQVibbgaqHRQMwTnrerAPykcc/73g3rMr94nKqGKt X-Received: by 2002:a17:902:d486:b0:1b2:1b22:196 with SMTP id c6-20020a170902d48600b001b21b220196mr4763047plg.48.1688715581853; Fri, 07 Jul 2023 00:39:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688715581; cv=pass; d=google.com; s=arc-20160816; b=awR7/6GOYWf92ffDXRF173B0B4/BRS8DLtUybZAPDqY6taeZ+L9jMSwpNnly26GXot CrbU4TOLsjY2exc0uVYxF9vFfnBE50CQqqguJEAQ1dQMvWofj7TuSlEkaKLcbqXp8lvv v3+3NOxRcW9vUFrc0BMlRuFPz+uVcx+HOsoYBOcywaZVcum/wZl6eKt3oI26Z9wJejF5 Uhvq29GqsK9WrkaPlHJS5bhSP0dAnU8bftBC27tuNHlvi4D1JIZeJp/Zxjr01eBHeMPw U7l8akqbwzVLt3S+0DwpzCjBGV5RX0KwYp9/m1Gyw6XD+Ah0iR1oKIshnkk/G2XsJqoI YmCg== 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=S52aLvA9c+8fTPEUxbLQzNSXjy5oQ4nntTQZ5ZpRTG0=; fh=Oh/HOE0AiPxeKVXP0lvD0UnG5r2/XcF4myx1pA2e5lg=; b=HRHmXzRO484C1Ts5ar0BUX7hPULfvv9svI1TCv7aZbcGJ9XRnBLt44nv05aduu6jgp hUeYtu/fYTyjTjAKITy1l012B+ZQ+5AJhbFiysmNOywuF3VxlH9kxe8XjTbA/3e0/yTY M934kol1+eMcwgfVMh75PdmlpVKt9+Q56AdqEw559thFxNRZnQZeb4wJeuFm7XwZzcQe Zhi6Y0zbNTZWSs4weiEl671tCy3YZzekoiHzVT6CrGLYtYYap+I0JdpN2kZC2iJSjEN8 yAFJdcDTRu+PxjMFlR66etU1Bcn6ctaChNIW3JOqhLMwdjiL75VOsva37FKxTfgaXZJo h33g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=PU3AIPVy; 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 kk11-20020a170903070b00b001b046acc851si2907305plb.358.2023.07.07.00.39.27; Fri, 07 Jul 2023 00:39: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=PU3AIPVy; 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 S232290AbjGGHYU (ORCPT + 99 others); Fri, 7 Jul 2023 03:24:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57144 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232055AbjGGHYR (ORCPT ); Fri, 7 Jul 2023 03:24:17 -0400 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2072a.outbound.protection.outlook.com [IPv6:2a01:111:f400:feae::72a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 08C4926B6 for ; Fri, 7 Jul 2023 00:23:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=O41ekPv5gYaBybsIrK19cy4Q2n0i3poPjT+v0Yq6lq0f2SXIJIoJ2Fka+PHuOTzecKA1V6B016tuwFFdlDnAWuaP/fQJrh2X7Iw235PlXkVOONVl5iT6rymqIk5NSsPqJFC1bHTKx6s+o121diL6PUWRse1/73V9iTK2oTEJesky1SfeElLRQFibIRlTG9mJAJSgsLU083VwNKQcSZ0lMw/yGVtvp95JN1N1MhvYbe2IZRjs6tEIYE5+gcMIhPZ1rkjJ9eknHdnmjaIxgMqUMBbUl1V4J+0DKhMqj28Z5KJIbQS6tQ15WjiDWqQcwzj05IdVPAR5MnKzUEPpcJRpww== 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=S52aLvA9c+8fTPEUxbLQzNSXjy5oQ4nntTQZ5ZpRTG0=; b=Ebc08o0/o61jP2j1bLmBGLPhZBhZxYKxwsE4hraeJrQlnHJ5scN6esY0adcNegUB/+ulP0i2jXepAXpK35PI5TFtM4GGsqpO7sCN4m1Og9/8y+gJ0t5XJojRQ6MkX53eph+O93lnAhuX7HrWayyiTLgj1kSvKfx62uQivgEZ8Tajm14UVaiMNQBTUorOlFAbhJt4m/ShuOOFvSrQl6rkz58qSLn4LNGJa19RqeBwfteRfk6YKK2gy0nFOSfN4C6xRbWar+xHdV9+EraCd0g4GkFHBZOpTu7BF+ADKFKE858zUr0Pc4dlMEm4xQVbliDlDOoGGgRmBAvbN8iGGn4bnQ== 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=S52aLvA9c+8fTPEUxbLQzNSXjy5oQ4nntTQZ5ZpRTG0=; b=PU3AIPVycqc6QK0em2JCfI/UpR4zNS1tsvJpFizKCYKy+qtO2210GhKXeYUvOfx+G6fDUx81QuB31/HDOsh7EcE90KrZMtqPH0Uz33VM80NMgagRgR7jOLwYKWxTYbG+isupbmp19kbO2NzpXr7JkU67WcmX0qvug3sb0+e6Sq1PctkfvYCCmiKg8+eLbTt48tMDFRVMrgA0L/cYwNt89yfwEWUu5+B/Onokiwgw/K6P0DxANLquwxVTc50b81D1gksbkgWSGJwpnrIAuaF60shwpNb4pb6qtexOTgH/L1vErlez+pn+nPT0k7DAkIJM3EKnWbEo8hvrmOdvzxwnFA== 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 KL1PR0601MB3954.apcprd06.prod.outlook.com (2603:1096:820:2d::9) 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:38 +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:38 +0000 From: Yangtao Li To: Sandy Huang , =?utf-8?q?Heiko_St=C3=BCbner?= , David Airlie , Daniel Vetter Cc: Yangtao Li , dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 16/18] drm/rockchip: vop: Use devm_platform_get_and_ioremap_resource() Date: Fri, 7 Jul 2023 15:20:32 +0800 Message-Id: <20230707072034.48977-16-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> 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_|KL1PR0601MB3954:EE_ X-MS-Office365-Filtering-Correlation-Id: 36f4f6b9-c1b0-486f-4177-08db7ebacd5f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: BNVXHi5cduDW79aOljdeH5wQsXE//YVaQ+rQOlbazF/PU/TsRrhLnF2/HtJJcTNK66AI8tyNOoaj1fTD7IG8EPtQ5fDvvXRge2mWpA7GWXmSXspaZAkGSeRHuSazfhBaX4cNqZ1huulegfWxsb6voRp7oKFLwBeXuUwzubnGpzrvNODFuaGv38gF77Qw0HjoSaf+0UgBRPy80wJ7gq5ITynrX19jjGZDT5AlC1me/gU+yi/Jc1Lh2bvceltj8w4x7GY6QZ1zXa1w6jSGPNuDs7Nfb1k7EIBHrupsfcnlJRjBKeY48JQM9N/L/JqUUV99x6QXc9+DDRXEwOzN1Men4h+n+KTcSDk/XtYghx/87k7fbNPn1yeiSvCLZLdp5hY9/e1JuMuWQEWFCu6JJ/xwb2AjOaunyT0mEflCtf3bqRkhhj7cWjQQJybaAB4EZ76r61mjJHYL4K38YH5P/ijtWdKDL/+zsJzNYFAfNqGBKMuZ75nGf8rQZcr3+3j9JZzca5UyAbtZiudK5XEabetqNyqQXcl7HqWRVxG052/qz7KS1qofnPMzEuOcJ7SUNYA/mHDnbp6bKn10BIzLr1PHbVyunoE9APnpQ89cM1O2MprGBXtsK4C5QII2rLw1U6Zp 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)(396003)(346002)(376002)(136003)(451199021)(4326008)(478600001)(316002)(38100700002)(38350700002)(36756003)(83380400001)(110136005)(66946007)(66476007)(66556008)(2616005)(6666004)(8676002)(8936002)(6506007)(186003)(86362001)(4744005)(26005)(1076003)(5660300002)(6486002)(52116002)(2906002)(41300700001)(6512007);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: WD0+mZ2Pk+UyIePG7LOy2lhQzgGPSN/YYj7EVsAilGGqLCV0g/WR7KHvl2Bn9LrxSj1NMl9cefHW0SSfYqy+2hjn/2Vk68tDo8eNI40+5ns6XHpNzQJCzWOhc1BDosroV7PM6pdcKefOYPU1B5TWOQhiijSdrMXLxhQuvhefsIY1YxLxo46v8ou0IT/b51TkhOHtTRC7559AtmCmqaN82n5BPhSLRGrHsgu5hEtk54tmpEjvaIp/hsH8pv9BB3baJ9zRNhVSUWN1dsv48iK7d61fRAr2ReZS4tSM59OS9f6f8fFvsj3xBFTT3E/UGCJwtpa6mk9g+9Eb5eoESXPScbBOAzQU9PsSpHgM3AGMC943uqiFUiEvy4u9LVZrNCzbBG9qplJQXhFNTNZdn/eNodbNviEzN4nbJCzmikLGcR4GHDdWrDczCuiLQJNr9FaElKKXPKxv0r6/tSnurufwIssOgPo37tttc7QW6u1Y9bWueCU4S6TdQJY+Q7eCcr5Bdooxt1k3mBNbMaNzVYF3YgSe4zgXlN4O0m5w1LJG2wIuvoPYLCMMthXXUEjDw4RTFEouSOEkM091+9S4eTxZk3jOo4VFmva47XWlFzViDX+qjRsNiS3VuAMEufqvexuI4SVNrOa3Koh2RrTkmy65vIPi1gat8o75w68b2WmoCMtrAtiXnuT9zYT8UBsjoua6zHTZmT1hsMFa5Nrf5PQpKSQ+sZhC5E7fd4YD2lxrygAAYZqTylCoVZeKfvHGtuOetF1r4EKCf4A81osoXm4YNIbuaZ9lhk/YiXF1WuO9lh/wsLFSWsVYEiUFKkODaq2ZwkdM0KXdwovqFp4Dt7QsZX5sFVKiffG26Io+UNHq9k+0v4DEIystFsvVuqdmlsaTXdhdQZoU06rCswyDG65jcii/uccaHgVlCv1NOVyyE5jg9+r7mG6/DaOdKNGUhbndt+AmgCIMqyzRFyHIU/1gKGAeGlQ2Y8wApu6J4GZz3g8MVrDVd5Lb7T/O0qaWnkbNf4fLLeBhY2hdP/mtkUx8lWuPx9Vs8fd/j+yiLVjzrVWR9y43e1RU0MJLr0rq8dVRZB2ig7kFk9YrR0YzhKLxAj92/D8flB+L3PtzaPXX8jn35s4ITz1kKp7z/v395MPoYeU2Ut25RPn6/YvZhbC4m2ZlQdhhpHlznIIf0Du/nUrhNDx5BGb61LkSk8eccSxebbI04v+7o+0eogzAVLgfNinmDNKsLmy+GljsHdY02B2lvmFeQTVbPtBVaeZcUYgwJncfLSZY4CFxUMQ9wbNRJjmt3FwVxXg8NjGkWztezhZ+TENeGXAbKm5MPUVjs6/gd/4obwqf+18FkB5hLwgTm7KNy+SC9m1EVRFrGCG6+ZkeUO/MOSkp3ZCiaWt293xKEupYbwvAWhDdghJUQswoL+1e1TU6ZuXpclJeQXLy5l9z9RQKJBiEmnl5ZxbwjTV6eq4JNFVUACB9X5/ggyHJIx3y+71NhteOpwMvM0tPYdRNEfpQi+jx58q8Gps7rdnvnRYD/n3jVxv/QSlQx1ayvejBs76wIWq3sAQRZwRRidkwXd5JuNyvDitIAtmwSLmo X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 36f4f6b9-c1b0-486f-4177-08db7ebacd5f 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:37.9712 (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: W4aX+8CUHD+0bPDoIWuGPhc1dVRUXoefo5AxmZFKjOOXA1RUK0kZhBANIKRfmAhtFfYPtEi0i3uTEYwnQIvA0A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: KL1PR0601MB3954 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770746629971619343?= X-GMAIL-MSGID: =?utf-8?q?1770746629971619343?= Convert platform_get_resource(), devm_ioremap_resource() to a single call to devm_platform_get_and_ioremap_resource(), as this is exactly what this function does. Signed-off-by: Yangtao Li --- drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_vop.c b/drivers/gpu/drm/rockchip/rockchip_drm_vop.c index a530ecc4d207..e95d94ce1869 100644 --- a/drivers/gpu/drm/rockchip/rockchip_drm_vop.c +++ b/drivers/gpu/drm/rockchip/rockchip_drm_vop.c @@ -2179,8 +2179,7 @@ static int vop_bind(struct device *dev, struct device *master, void *data) vop_win_init(vop); - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - vop->regs = devm_ioremap_resource(dev, res); + vop->regs = devm_platform_get_and_ioremap_resource(pdev, 0, &res); if (IS_ERR(vop->regs)) return PTR_ERR(vop->regs); vop->len = resource_size(res); From patchwork Fri Jul 7 07:20:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?5p2O5oms6Z+s?= X-Patchwork-Id: 117022 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp3090355vqx; Fri, 7 Jul 2023 00:44:46 -0700 (PDT) X-Google-Smtp-Source: APBJJlFxgGIEIVbB4Fi7zC+b4ZHcobHbDiekqcPmK/hH/y4sLxMHasPsAoQIg7q4mIG8t4T0/3dW X-Received: by 2002:a05:6a20:12c6:b0:121:fd18:4b51 with SMTP id v6-20020a056a2012c600b00121fd184b51mr5115603pzg.36.1688715886440; Fri, 07 Jul 2023 00:44:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688715886; cv=pass; d=google.com; s=arc-20160816; b=lwjC4pHcd9KVtg7+1VLt2V9k8BvJLmUWPXs87QHHVQ1xVMpHHF49BRAspHId41siwf h6Zdvi+ytJsKiz8olE8L+HaXU6Yd6iH3WbAEM5kSpts+evKVb8BMgKgdANUzXVZhCGZ4 ZnM26TSovZqeAkOaQZTZ6TWqMr6JLq99UzlnmDt0oHfP4k1qHKP5tlBwNmbDehi//kZA 8LIzXkNUcevAjym1wkzrX+9KSYb5Qho75yHctO9SNfE5M9HELKbNVuap8S3v9B3OK+s+ 0utd4XqYbQyjLnl/jQGzM+xuPAgzCeQAxsrru8eW2lbt8YJj/jbVfb2dL1XwaKau4RSB d3uQ== 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=hWlxDQgJPt5iRXpnTJfIfafjSNsW3eAZ4uVj1DMmoI8=; fh=Vp1JkYH52VUDF5gnf6B17H8ZKTHuP3APbYFBUGx/UHg=; b=lSYFNUs4jW9qA4VJ4dLQ0Fo0Ti+D2Oau4nX4ryxSBlFKFcNE2xoYostEZkJnqgQVi8 cFXidSQn+EGF8YpB50uMAshxSagI9AlFWydzFoyBwaN8c1fJ4cgOIMOMbmch95rV9wKN Gz6F4FIZdNZNMN58YojMj7turQ5tUc8OGluxmI0PzI0zSGB8cb26Rgle49WQWirRO23f Sw0ktqlpW3ZmpBWKHJ90YHERxyStdtDz9ROJnsoHeHUpU3vBErojKhFhRilDMgspLegY N26l+82HvAhGSmBr4VYpBXY7jEg5gUD2FoSe+r+A+g9yABw4NMJtpY9Lc1jmoZrmXCks gg8g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=hX0iCBD5; 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 cq23-20020a056a00331700b00682a0e45b59si3109248pfb.85.2023.07.07.00.44.30; Fri, 07 Jul 2023 00:44:46 -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=hX0iCBD5; 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 S232134AbjGGHXp (ORCPT + 99 others); Fri, 7 Jul 2023 03:23:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56250 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231566AbjGGHXm (ORCPT ); Fri, 7 Jul 2023 03:23:42 -0400 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2102.outbound.protection.outlook.com [40.107.255.102]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0A68D270C for ; Fri, 7 Jul 2023 00:23:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jbcHiV77zGTTF+86IoSidXR0xxPfw47DNRcAMM14G6DTea+fTb5+OjxFzIYH5S+vikr0t3w01aLpJo1Vtyf2hsr4b/rw7IrcY6GjyGhRakJsSHLXJ9JPyBZEF93HmO/DH+0LrS1GzYGDYat/JAY09qhg4c+2AmmpJSeBR3ly+BXVaB4SMxyD8XnUAXEm7XI5mfufikKCJN8W5ieSwIfxlXLHJltJb8OEYfgBximZ8bAUtzuT5bdYFr86wUK+KpNebq0V6SJDff+dEHqKBIm4bzxUdQbRngACj4WuJjtrWFDSdCgPrcW9+GD4zsvbesDCoVTj59f+5VUUykukquwpvw== 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=hWlxDQgJPt5iRXpnTJfIfafjSNsW3eAZ4uVj1DMmoI8=; b=SEMzNy9KwzDq6/vwR8FPeX0HhSCblChb1qqRm0bcxt092JSwCSih9/+9HZwrCSsx9bJkDJo77XjWPiyYlpac3NifyfQuOFThBKufTeoVuiqwu/tWlW/qWB5Y8fqWrrNIW6ykshqETk4KdFN8ZOfYVHWfgD85byMUrJDKdow+OMoQsrsTiaIpvOxZ4y30SPti8KxpZIIv88yrnkvWaMxoxAz1C2gAGWYdiG/l3wd4Z/wsskTNn2FrFSoVCkiaqnQnJc1HRe4GaEtTMN5LKJhT2kuoayod/Jnk94EDlytps34ROlP6i1pdGEO+SB7ip48mcymvIq/wgh5OwvUiNGyQeQ== 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=hWlxDQgJPt5iRXpnTJfIfafjSNsW3eAZ4uVj1DMmoI8=; b=hX0iCBD566E65htPEKxnP3xl9yWnTKNbcHlxeFRvM8ZH06f2Se3xWFvL988YHFsnZcl5VgmIVUl6VpwkCDs4CLO2qsHKYQW8kgWieK1N26W88SMuxcPdl54jtwMMlX/nAAUuB3c1J1bsZjzqDMYCx4XpVjGBwQGI39aRNXxiBlppBQK4oCIje1uWtONoDfIpB0CdSzJthunKyN44sJWAEye6/XedibVUCh3mw8pndgXuHiplXyLF2WATjxf+ZZ9qiKCAS/P5zI3i/sxRCpSxr9uMnMVBVsyuBQTGoFdllMKbPkH1sr+FWslLwUTsGzZE9ZflsBGCxpvGAOZGhigsfw== 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 SEZPR06MB6743.apcprd06.prod.outlook.com (2603:1096:101:17a::12) 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:40 +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:40 +0000 From: Yangtao Li To: Alexey Brodkin , David Airlie , Daniel Vetter Cc: Yangtao Li , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH 17/18] drm/arcpgu: Convert to devm_platform_ioremap_resource() Date: Fri, 7 Jul 2023 15:20:33 +0800 Message-Id: <20230707072034.48977-17-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> 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_|SEZPR06MB6743:EE_ X-MS-Office365-Filtering-Correlation-Id: d0954b82-994b-4ef6-d6ae-08db7ebace86 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: VkAQNHpbPbcria/cIToEJdttYMWZyfZt+jBLzi1m9yKBNx7FVy7Qz4XL66qm0g0C9zAv+1VFJaKHzbuHP50MBCjqMLL1tI1nc8afEfSGk5fTa0iNvRlRG2ObMBZOmonDA2jIG0r0LehDYI3vZMN/wmqahTPaNQOCi749dMAwNzQdo0ygvvkGF23jTuqfIKMCnBCPYTdaWEaNlvnWZdxCOt5scC6Nmw0UI2wAf/hKPbYryWHXM+xT12TGN+KjA2iMHMFZMzD/ikIVlYaRng4Ha2E0UmS6UxxMCYFvKPu6HUHk6bBzRSmPsIyxu92AOjWjYqzjxZOayGohD2b1yBg3T5xhqT8Q75dmMF4ALg9gpK8+A/AHk8mLO4Dg/goPOLZtn9dJXVQdsYa4rqQQfRe8r0aiHrH2gBZCMBo5XFI38khVoXBoU7YZl0cKXuTdy5sQbmt6lmuuQO9t8ICyX5l5Hw+eL272h59odr7hPdGQK4Go/oQOB/9KJqXKcRbecgv386drtV98ixHWl6OJPQRCQIrmLwlgcZ6YMTNhVU3MiwAvqX7ntECh8lILarZO8TJ7khThNpMHXwZ0EzB+TMikuDoG7tUzWsd4PSNpQfk/BL2nupC2UoBHmBqNxssjWFJ9 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)(39860400002)(366004)(376002)(136003)(346002)(451199021)(6512007)(6666004)(52116002)(6486002)(478600001)(110136005)(1076003)(186003)(26005)(6506007)(2906002)(66476007)(66946007)(4326008)(66556008)(8936002)(8676002)(5660300002)(41300700001)(38100700002)(38350700002)(36756003)(316002)(86362001)(83380400001)(2616005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: CMHiylyK4ft8zlwn1WrFTy4actvCZQtFa5za7arHhb1lA8S6lLIltSX72+mIDfwEjhqAfE6dKm3iY2f8RdT383I3He4hgmx8h7Tt7CkFzSyxUa4wiNkxysiG+Ccwd+eQN+qVB/CWAVIHIPro8MBpmpGN7B/d6fTyGsiJ9GDNFchc/a0YHLuTHYX6FMexhTH05UOu8fQ2sk3zISTaP+gjCmnmbxDIpbbL8itOrPSyTxsyGwubi2yUfNZolUCp7vUwdNPe5i4xULomIK11pIHvGxJCrlramZjb5tkWbpu99SBAdPif88Fxn4Rm/C61BEKNkAU26YZ7i76RvUCRSqvWxpW2EjJwP0TgY1h9f2m4J3trK4GnCr1AnWVwZVRXg4lmsRTi9S4ABI38qHT5B1cu0osJdm0V5+/Xicdfl9KOeSi87mKiy1BjuE7r9DpOFA0pMmIfV559RnUEKnXOx7/NU0B1q5MZjgy95SvRw5/Pcez1jpEaqeT2ERtwmbgwmpi6xMAQskplVY7C1X63kd/nS1ftIh4R10H3iQg5dQy7Q1hmeaOY3pcBpSXNWnuWwNjhzDU9YJrEZFXJ39YJmwBubhGdz6MXLh6x7AeMMWadNOpBcrbG5aMvWjxAIbs4HsSmVQmwSLId71kU2g3WZUAWPusvqFR3iUSH8GuEZJy1V951hYiQXC3uW6GQfWMoTa7x0ezpcXLqD+7fwUWDGYpldy4dQyiKbzSDdZl59/128bU8NooynS6OHdbRQD4CJOjsJpTPFWPc/S3RV+l+hyZ+JkCQla6Io6cgPr5OzLkWQQPX4lF7jSNrS4BTH6zD1yu/DWKtSgXVBfKXyoM6GHiGKfmlAdhxWHugd3HxRy3AQ7Jm2nQC00oNJjrxTz37Kx5YvJVffT5NIufRnT1USOrr8ipYY6K2CKLTw8K6C7jOBP6boCfnIXoXV1USHlop6DxpD3SAq/iO/ey08lTa6KZTc3cRl7CUl1bpAQczFrqw0VSMB8VNWyB2Ahd610P4INjphQwRF0cffD2gVNsZTVDj8g5Un1VKDostF6nDRv7grs2rsSru1hz7cpvkyei+d4M5uvpbMbEKwlv636+PbwZH2Sm7EYZnyRAT+bQSdf8GfumZoq+rKm2drTkUYq/ykLe7YV0eiTjgkExKfLUorTgUholgg8kKylIR4/uILW+91KEbxDYe6LyUFSi1Uwpcex8AkxwvodVHnxRe9kCau/PbQQQqhXXkx2ZGYG3+CnIcABzrUlwxtxVYrqdy1o2DKteP/VIUYhASGMp7CFXSam+5PRgKdQDwTemJxVEaf5ajCJOZsqfvxawPOcoY0c1UpAQ3cssr4BpRoo8+/otIrPMM/9UEgYCOaXZcfOrH+4JLYkSr0SKZcnuy0pJye4p4GyhLKdIXpti1Xy56HLczVmrtOSr2U9qRQtIwn8NJhEPPXO5grmd7+spDu4p8AzN2sn62ptnxKnttzSN3NZfuC2b3nwLPHQ8IGrjR29Ai21Z+y+Nj1B8mNRQZ9YAZnL57rVwQvrLX/90j4wT8RtPEGLUOnX2Km3VwmCzNGQNEMBJl5q4L+NCda6VeTb7NACBMO7RD X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: d0954b82-994b-4ef6-d6ae-08db7ebace86 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:40.3037 (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: a2xVT1UM4zwEYqOS8IgXGtWiSltbeq1uHEGMsZGwfsN2DD/uGDjnFYT2ThnIomuPilUqN6tlgv32270XIey0/g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEZPR06MB6743 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_NONE, RCVD_IN_MSPIKE_H2,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770746949004450760?= X-GMAIL-MSGID: =?utf-8?q?1770746949004450760?= Use devm_platform_ioremap_resource() to simplify code. Signed-off-by: Yangtao Li Acked-by: Alexey Brodkin --- drivers/gpu/drm/tiny/arcpgu.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpu/drm/tiny/arcpgu.c b/drivers/gpu/drm/tiny/arcpgu.c index e5b10e41554a..3a5e66d909a4 100644 --- a/drivers/gpu/drm/tiny/arcpgu.c +++ b/drivers/gpu/drm/tiny/arcpgu.c @@ -251,7 +251,6 @@ static int arcpgu_load(struct arcpgu_drm_private *arcpgu) struct device_node *encoder_node = NULL, *endpoint_node = NULL; struct drm_connector *connector = NULL; struct drm_device *drm = &arcpgu->drm; - struct resource *res; int ret; arcpgu->clk = devm_clk_get(drm->dev, "pxlclk"); @@ -268,8 +267,7 @@ static int arcpgu_load(struct arcpgu_drm_private *arcpgu) drm->mode_config.max_height = 1080; drm->mode_config.funcs = &arcpgu_drm_modecfg_funcs; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - arcpgu->regs = devm_ioremap_resource(&pdev->dev, res); + arcpgu->regs = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(arcpgu->regs)) return PTR_ERR(arcpgu->regs); From patchwork Fri Jul 7 07:20:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?5p2O5oms6Z+s?= X-Patchwork-Id: 117016 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp3086348vqx; Fri, 7 Jul 2023 00:34:11 -0700 (PDT) X-Google-Smtp-Source: APBJJlFwcnGcUkYPjkDITstCBZ7AK5n5Vf5Bhu16asUIqlrMszeHxThkDhOd0TsiVHlnXJEq2tbg X-Received: by 2002:a17:90a:e996:b0:260:fe48:491f with SMTP id v22-20020a17090ae99600b00260fe48491fmr3191644pjy.45.1688715251385; Fri, 07 Jul 2023 00:34:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688715251; cv=pass; d=google.com; s=arc-20160816; b=F0O5PEt153wSrjqTtphNXkvoT9CM61e9suoowmlKRfp6C83Cc9niDBFvpUjb0wriUq gKy9H9vGob9ftjGbVLAwzKO7BFf4AjLyplEYCbAlBEvM5wW2M/P6XxVbwfbaCfy9U5Nv KSuxmJB3SL76ambOXTN7hlNoayhanaX4J45yCOz+NCdRwEsUU8Wxwv7ZAPutGSflU8To Rpmt22AZlhiLbhcevBHKUoIRiQPF4/vI7AsypJO+2mrN/wzV0udccT+g3B/cTn+eEKjH 61bVrHydlMV+va2YYEaZ0QL5igxMYjALZSksv7Gto3IBFdJIKfeSiNbZdhSw/XIJ2mjT kVng== 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=DGxx+VePSjXYlpTqopkI+y0GcumA4d+Xb8ZaUtaDV5s=; fh=z98lbnYGpSKysaQg98nPfojwuOjelzSmnN/fQ4itCcM=; b=U3ihA1UcB747ikceE/8mzq2KJn0Fym1nlNxaPMM40SWmDOQZ4vUc6wiDjSrXbbF/OR mqeH+nfmQmf1CzndAQ/pcl7VpE9Sz10NhPWbUg2D/VY3ewoo5YP3FPeqSmyYdRJ8kc5e sO2l2FK6TBsr69KLZvRT2pgq0jJcJelzuO+10PDZWmpyipk7bXXSzQ0mw1v2Yj9Hj2k2 uhmxve/KE+7B2QHHHhChuLOdkcIeL2QblIeKYw1aQjxXTf0EbMWwwX2ON6q2d/rA8h+C 0Q6cMe4tSAPFCrHH2/cxJzVabkRzb9mEMvMWJizP80Rd5sfhhUnVJelZDWMgSr+3C+5r tpfQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=DQsdHnyI; 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 o9-20020a17090a420900b002634977e6e7si1400415pjg.102.2023.07.07.00.33.54; Fri, 07 Jul 2023 00:34:11 -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=DQsdHnyI; 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 S232073AbjGGHXE (ORCPT + 99 others); Fri, 7 Jul 2023 03:23:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55732 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232163AbjGGHWu (ORCPT ); Fri, 7 Jul 2023 03:22:50 -0400 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2070c.outbound.protection.outlook.com [IPv6:2a01:111:f400:feae::70c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DECE92130 for ; Fri, 7 Jul 2023 00:22:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kYz9VGMDLWxBZskdistyB+tllr/YoidQVivr+iRcQJqLpvzrmM3F9VT3HQVt6kn2Dg/VYLIo/EvwmEEXHyfOz4205/YChfuPA7cvd/9il2vLOob8FYJcn/DR2JIGVI9ZFIj4l8MlzIjU1eA7vsJDQWVC/IANTfSOekvJOBPUo4SrXWl6bBEcNTlztCpiP4cRmOZaAFHJK5nIkqDQEHbLQMvvNRuuG34NwlTBTljYCY5h2UNiofGtAR5Ikr+EuzNvxtyg6+XSdJ3dM4+tKuC2LJ5dXAdpnJfTsyF7ched/ZthBW+UqzbgiyLVopex8JSg3KkmUNi2f2Ig7AIlAMDcTA== 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=DGxx+VePSjXYlpTqopkI+y0GcumA4d+Xb8ZaUtaDV5s=; b=OIUlknIregq6vvkTMAv2S4wHVtcC8o9kBS2AUXDxOb71MDlt598/7cQWhPwf0yLQDhoVGSTp/aR+njv7QCAsNvo9M1AyEgKH7SSRGauFskh61t3PzUNqn0zV9ureEBj0LqZX5eURzQA0N/QLW90LDagAmZ+q/5qO2VfDp5ocHn6zsVt1OZkcCvv7y85wI5HlxBkhWZGVYlaUhhj0n5E2ZoNhPkCjML0gefYWDmiVR1TmdTncpHkYWWiIBg1n4HtAkgCG/XfIVrKYLuklH+aTa7F9b6Z6nWX7sKVpEmNcMGmybCNJOhynxOdyTCkECJD6RMjqwBc3qUThcpHLrxqtOQ== 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=DGxx+VePSjXYlpTqopkI+y0GcumA4d+Xb8ZaUtaDV5s=; b=DQsdHnyIIGwp/Dxfi7ROvl8TIUIMcif3C4g/vfE7EXYOsTwaYYAtfUsJItYVQ8spnUsXYUWm2bxfHryvIg0d7f34NYs4+8SwY3vlgJZGhjDO8F705cZ5Zy+44P9zTlpOHoyi/Y/8MeeXkhB9TdDv5BhB++w67GwWBFDUb64luNWJwR7CTzyrOyvfGhQhFXRkxS9Vu1o3dyB0sa4lj+32WkR7nXJphhU8rIEeXjvAA9MnGTUAlSvx3p7uiXglItm3a+seDFO47pz7/od50YnUvGpsHXeh/ylpXo6/zGCPNdRoSM2FnvIYhFjW0xrc48Z+Kx+uSDB9iKETSzVkyodt8w== 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 SEZPR06MB6743.apcprd06.prod.outlook.com (2603:1096:101:17a::12) 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: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.025; Fri, 7 Jul 2023 07:21:42 +0000 From: Yangtao Li To: Stefan Agner , Alison Wang , David Airlie , Daniel Vetter Cc: Yangtao Li , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH 18/18] drm/fsl-dcu: Convert to devm_platform_ioremap_resource() Date: Fri, 7 Jul 2023 15:20:34 +0800 Message-Id: <20230707072034.48977-18-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> 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_|SEZPR06MB6743:EE_ X-MS-Office365-Filtering-Correlation-Id: 9152a4a4-2205-4fd8-06bd-08db7ebacfcb X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 4zJkFZ44bgDgJbkrb4Z/ufK9oKq90kjtCgwh1YeV9iVuWKAPqO7ePtbcRzUfq/u1TKgeCe9aR3JF1o85FCorxmxx+ZPLk3EH5e2JfnbFDQGYBgSMBhok3bgfNGi3RZY6iiHnnzB30e5FniIDi1LJOcI2zR2d+nkGxxhJXyvndWKq63N6WtKdJpFtLFnS8J9nPrpVrfjZTI0xUN1rSoJg5nMG4qbBeKF1Z/aRsaD8BA+92NRaduuhCfFnwfsgzUJG3YHD/7xaNz7CzNIf0ijxF2dwtxHYGaZr8Hj51wlLTYUrnWHKVJ+S86Di/xmb0Qx0aPVDIZCVq7oUybw1WaqQOd1Whll+Jc6jzz5xxecownO/Kb+YH8wid7VRe+3u1eeU5jOXaE74F1ST3RdnrRW5REeOBJ8t37ch6c/MDjeyFxKNETNEzOH2EobpQ2psQEePIgOiZBZQrdgE25MamHw/dFCahtxdtcaAG/ZhyrDlcqW3aShaQPnVANO8+MZoOCrndowCHeda9jbVKmmLdRF4YIHFBpghh351RWA5vZZiOGQnj2nRpjOb0VM5UiCLPP57YObdi6V9S0OgWD1rddlG8OEJzAHJ2I1//Aztm387pLQQSWMMVXF0dUMcEYCyYXTd 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)(39860400002)(366004)(376002)(136003)(346002)(451199021)(6512007)(6666004)(52116002)(6486002)(478600001)(110136005)(1076003)(186003)(26005)(6506007)(2906002)(66476007)(66946007)(4326008)(66556008)(8936002)(8676002)(5660300002)(41300700001)(38100700002)(38350700002)(36756003)(316002)(86362001)(83380400001)(2616005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: /B1/Dvl+4ln7/XZI0SfZaYWz+xkfUusvIzFSPEX1JQ+PWimom5hlUiN+ZUviLeACaFRIdGgAvR8HTLSw6l1bt9ag2qc1mVrMznGwxl/f+/vbWl7Ngfm3lYrKHK3ENQqWBA/nzS6E7BWvRv1pAWlqY6HulR4dtzIy/7jzK2L2OQD3Sozb2AncRuc6GdY7ncz0PsX1PUMCQ/NUoMgAZfN+jGIoBbg5kBBhkBdYFGaXH3thmhupTWVweZY8C9TKYCrXXcFDCJjCq4Rw+xCe9iMJ4LLZr1zz2LFPmWCR+J4sOKdiriNWyULf9V+usuT5B4fSSGnqSI+JM7RYXMQmvApxLgLbfa1sw+XaI0dOjxANfz/2jvg4zuRQw6LuzKJvH4chXtrRHomp7i02ITpYCAIlG/xlIGGN2Dgqm4HcOqv3XMHlhwtw+THHHhqIUeYGkFIn7NCmu/T7NEJDbYOezEbNREwlc0NYFAUI3H+0HnG/4pVmx+RGghM1PyE9HNWILHMBcTCTzdix5oMEiCh1Lntzo6zxD4Opxkp11nd+Bbum62Cm8tEQwtDYyN7AqraBXF0k+KtwoAvv3tmfZP6q4rilEpsnwbt9t1U18YL7tLTjVwfluoX/RYY1jyyn+C+8UdY7NuJB6q/JaVoK+y/iJAVNhRv5Qi4sVhZkPhTx006gjKbeeGZJ3VwtSDFe58GSxiKK9IRgiUqKad6Z9N6I0M3us09pw+2zl8qbLiV8Q/e4H/EPQVRyhPmHzYYJY0aWqCoOGGvjkp+aQ+pBbTmtEa61HtvXFKjhfbFkGuMtOxqWef6v7+uCJJqQwSOCnBhNEPVqJuy61sIid+ssAWDgM5D8HdqE8vPTHbbz/pO2Iv/eWDRP3q87L1d50C1+pfSyX4hGDY9SBFBdsUN5qswaDnqHs/LvfPHZJVi1GG7fnIFygbSt8WHBmBbTAlFOkXT0yPH/IkblwX4Gf8HWaOk2fg0rMulKTXcYW6W9uClRAY1cdmalbg4LMAhaB3Ln0Iqi99oK03ThQYj18SCgAZocHMD6h05BINEMpNB04FVsrfdMU3bfDYzahAU/9h3DTiA56fuegtyPQGhK4kcZZzM2RdRzddJgwqus1NkkDrPmlUmpsdEhUTuQ0bgIfYRA+2AhoJEtbj2YLlW8dWdwaiSD9YK7GDGfW667oSyzLN+Jy7I5+I/a8wQkCgN7gbOmOzwXH8MQm6wcKhc1vuZOTxP1voCVLYrfwwxo+haAhNvqcIexmJiGIa87SrZwqASrK+fQ+QQO+69CWJRjLyBd8hmnpT2Wesm7f4m5H3i+w8VAAPjVkVw3wVo78I9Sh/O9kCJfCi2O7Qdeo1s+cIlQL6oET/SXKZJ0H+gxpujSomyH++3jbQ+TTVHZ/guZ+5Q1r4lm++WqLwQQAiseNZ7v8iPNlYw4mlzLjatI/N1KyjZyCPfoJNIzv6Ls3de9B3lAMMvhmzhy2/BIr071kEeU5oEJfbA1hycw3CGDTbt2mJ+JwMycVsd85rrZVH5RCWl7NWKhvoit/GG2n3aA0CX9wRyltB70OLTjDP/LzsTd50iVWDbbS7vxYVeW4A2pW+uW7M8j15Iy X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9152a4a4-2205-4fd8-06bd-08db7ebacfcb 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:42.0492 (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: zYpnUZ8OH2EnMN6JjolYHsULkgY5jXC9nG8Lb44G/5ztF/y+leZCdA3VjZMw+4pIh6qzhLb87lDse/RVu28QBw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEZPR06MB6743 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770746283710796082?= X-GMAIL-MSGID: =?utf-8?q?1770746283710796082?= Use devm_platform_ioremap_resource() to simplify code. Signed-off-by: Yangtao Li --- drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c b/drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c index c09ba019ba5e..14661912e60f 100644 --- a/drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c +++ b/drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c @@ -246,7 +246,6 @@ static int fsl_dcu_drm_probe(struct platform_device *pdev) struct fsl_dcu_drm_device *fsl_dev; struct drm_device *drm; struct device *dev = &pdev->dev; - struct resource *res; void __iomem *base; struct clk *pix_clk_in; char pix_clk_name[32]; @@ -264,8 +263,7 @@ static int fsl_dcu_drm_probe(struct platform_device *pdev) return -ENODEV; fsl_dev->soc = id->data; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - base = devm_ioremap_resource(dev, res); + base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(base)) { ret = PTR_ERR(base); return ret;