From patchwork Mon Jul 10 03:23:42 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: 117570 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp4751696vqx; Sun, 9 Jul 2023 20:32:14 -0700 (PDT) X-Google-Smtp-Source: APBJJlE7FvpLU5pnLdDL6AY4xPktZ92KV9Q/b8rfINEFR7AgM8yuIBDdqczdtibii2mnKgD+2Zqf X-Received: by 2002:a17:903:1205:b0:1b5:5059:e733 with SMTP id l5-20020a170903120500b001b55059e733mr10962427plh.17.1688959933834; Sun, 09 Jul 2023 20:32:13 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688959933; cv=pass; d=google.com; s=arc-20160816; b=NLNFm1Qi/6TnPPcj8HuDXvIpd2tZvgxos00OKvMvKI9PTDBkmryjVv1EV4Elyjy7bX GnMrzAn8GjabW+lZIToYElaZFrnLMq8GemSHt0Z+AbZAdJVaMu0pUQa+wNeFxdkwYCdA jgEXkydOI5BoX4vLdsRWPfTaW1Xb0Mj0U0mrLFpIw1BMRPzu9MmZKwfHzoN9f3rVcGrL k9pYE1IIfXmyyCEbEK0z2kKUCqELrPZfePkDTn5NWMG9lhYc4YP5PjvZb89rjE4H9PJH 1Lbadek1f+aYUbKeKzKn5EJnsEGyyryZ6TL7ihg/upzV0YcI2Hmm2alpxs26Kju9axvI Wwcg== 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=3VHd6o1KlaeXRDzheijeTO56ksEWDi1edEW91oDjNh4=; fh=y/wH+vSQlEVQgp66lZMapn2SXaWbLQ+58GCAz5f37TE=; b=EYPsz3KxlIt1jsA/Iz1bfu00aDHjeaxf/RHCl9GOGws2g0aSgfJXSzwqHV9IxbffCB cqL/J7Xo1GoY5yTQbaGn5p+Nb31lii/4uh8gJZeNGCIJxJFaxpYPY6PYWqfCB+7cSfU0 c+YFDsjrIp4kN7qCo+17mNAmFcdm07YhSzvCs2TcidLfI+YDVWh1yNT/9QaNMsAeSFQ1 OFHez86U9n0i+o6NLCX4ompoOpKU6KxLZ3EGTBveuMDSzqoYStUGnwClnVvbCXcsDaI7 h7XbShfsKDmgAyucgAHrbbSNhD3igPolI02ybghD4WsnfDLNQsghb3YLyZ69C4exgse+ wYgw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=pDaWgdm1; 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 f9-20020a170902ce8900b001b9be3b94dfsi6779810plg.268.2023.07.09.20.32.01; Sun, 09 Jul 2023 20:32:13 -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=pDaWgdm1; 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 S230110AbjGJDYd (ORCPT + 99 others); Sun, 9 Jul 2023 23:24:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56798 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229970AbjGJDYZ (ORCPT ); Sun, 9 Jul 2023 23:24:25 -0400 Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on2091.outbound.protection.outlook.com [40.107.117.91]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 73ED4FA for ; Sun, 9 Jul 2023 20:24:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jUh/ihRWK4xW3J/S4jGah5VrCYWDFxK1OWJjXa7hRC/OUJnU6XEnaduvAhn4Hr6FlxocsgHFjfYkwy3MyEoklHI0DnTZt7uEEPnLd2UIX7JuJlYTzHDB2ZWUV9Jil+TNRpRA+TZXPKjzjO3SGiinnWtBnz8D+lsxgBy3xWVxMwKpTkzJOsynC9nhsPdLVKdI+A7vfiNPBNe5jS16kCIxgp7pRMP4TIaw6w3A57+KvQDD4VrUo4h+lEbAIBsq2ckEDmvKAHMcPih4LdXtb+CS7ADjhrCfeXEFW2U80+X04mQd+okwYXYh+8ob9MmgCew19P2pIM3rpumId8PGuV34Ew== 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=3VHd6o1KlaeXRDzheijeTO56ksEWDi1edEW91oDjNh4=; b=KYvpsJIFp81q4Rm8yfx8wiyXcsfdg4QEhV02lGWUBHkxzdrHnOAPEDg/LK1Sn3TLR2wE5Ppwy4sg/zfxYgh1qi51xtPLNrLEJ768SRx6zLXOKOVukoZRKMAPR42IMhzeyGIjyyj3yep3pXnFo/HS+fvlV5yGMBlRcvT1zFfgT5a2TWoe8yoK4YZcIUHPakBdQ2CpN2JcZHuOpYggOPsyS6I9Sl+u+O7DKOpCdi6dm2fBiZaShre4t/teOluxYNXm8DcVIsEaAjOYr6Lfgo66oLNnrBQp48G+ulIytI333aTPBSKittZrclH7U9kKjdtqoRGOHu1kpVYWEJCd5M5YhA== 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=3VHd6o1KlaeXRDzheijeTO56ksEWDi1edEW91oDjNh4=; b=pDaWgdm1xZ2eDEFkCtFCcEs2Pj7kWFGUmqBbo3dd7GGY4KgK8THAtRG+++ZEor6isYlrwoVU0/2Tv6Li6jtwGmDWJv8M/EPhVk1QLAfrYQa7OTS1cCX5dNxowziGU2GgYGe7BDtopy88nbR24jTYOEZC5x7As5QJRJmb5JZD0IjOTV+3l+qiv9J6KYyhh/T56C6Yj64lG1n+wNDfv01ynNqk/IV/uMkk2xK4uG3KNRhICe47TIAwiKuEmCU8mCuf5HErfWlB/0iYOEl9QrU+EU+nhiYfoxgEh0CawUOfn7MSn2a5lQnBS5MxiEvsOkiqEoTvycSjrk+7/EVrDtalng== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=vivo.com; Received: from SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) by TYSPR06MB6472.apcprd06.prod.outlook.com (2603:1096:400:47b::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6565.30; Mon, 10 Jul 2023 03:24: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.028; Mon, 10 Jul 2023 03:24:22 +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 v2 06/19] drm: bridge: dw_hdmi: Use devm_platform_get_and_ioremap_resource() Date: Mon, 10 Jul 2023 11:23:42 +0800 Message-Id: <20230710032355.72914-6-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230710032355.72914-1-frank.li@vivo.com> References: <20230710032355.72914-1-frank.li@vivo.com> X-ClientProxiedBy: SGXP274CA0020.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:b8::32) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|TYSPR06MB6472:EE_ X-MS-Office365-Filtering-Correlation-Id: 6ccdee01-41ff-4c15-a101-08db80f52774 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: jitNmo9ZvTayjMgJeeOGQnloNoQeFXg7IhlS3e5vwCETXorcJ4gpNGnwmlJk4htL/42jYXmPLRq5kCfpTDhUACA393yUfNau8By0cOiBBa0hxvvDZ0f2Bf+PjEKqhIU7WL7gw9wZIPWz+FRWeDBMe6y7jCSrAxLXUKpe9uoCrJDyb91zLpI3Nv9hoPLNyxUcxfnl7iPHsxu+xReldVgj4KHhj2zezNTWcZaJBdIR8WEyCAF1dFaLvEl/+6yVPcgpkrfblIzBFDEManMTeHYBcg6V2L/FxItyRtjHkB+RtNs/QnV/BtpMblW7uMnt2Ltrmu16sscF8DLdBjvX+ARAmrYXTTDl3wg8HjBAWMb0X5tNTMHoDU0BmGtqJQ30eR52aKc4IiNMLRLWjU6GKycUGaABR9R1nbaza9I5YI3hSuyUGQ9p0Lo29qLaCJK89p9vvIq+RlUNxGv+WtpesH+klH/mTwGOPxpA3kroj/uewPY2ciqC2zMGdEXWdL+8uWbJSbzPI+71Ah+Gs/BGwdgWs6XFeOTPFtlwO79jmnnFAEQpqS9YTQoOypUR3SQXiF4hZ/ww8E+ARFQqXtcREU51hMFU9ONwieaQujilNqoIkvspqSxI5xS9tUfdH2YQGXEG X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SEZPR06MB5269.apcprd06.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(366004)(39860400002)(376002)(346002)(136003)(396003)(451199021)(186003)(6506007)(26005)(1076003)(2616005)(6512007)(83380400001)(4744005)(41300700001)(4326008)(2906002)(66556008)(316002)(7416002)(5660300002)(8676002)(8936002)(66476007)(478600001)(66946007)(6486002)(52116002)(6666004)(110136005)(36756003)(86362001)(38100700002)(38350700002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: U1Sai6yJu8h5n18DeWz/WHmvVEb0FuKLoxwDBnPNFZVaMwauy3ZFGsHl9r3rRS43Fqer6WQtjoW+eFLDr/pcElnibSa+2ZR0QSuTl8yhChoMo1dfzF933ARvYONHqfYzlk60gyY5MRo6WjEqLnKKBEUllkpHKPlrj721BhPu0l+5wynIsVU8Psa0dXjWIJwlUQ3qyAnX5xY5Yd9Nh7UdxWNcevMtRicXUJGxEi8kiCCfydkGi1JrNoMuG9s8LESm3YIkQp1FHsZFygWzs7/2B0HzTtfE6iTkEV/8Hcs+lZSW5GnjBaAdJaN1dPODT9lTsm2yatxirhIQImXUQhuOl3U7f6MnUBKmWq3hyrApHqI91J+OWKnBu/YnDt88DmesNwBCfuPKMmasxrhCOSKbnE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JLYyAfV5gze2AVN75uzJdelD5gAJEXjjkEVPKdj6lAilCCBexg0dKbiUQc4gu1l2xpe//FwEUEjJ1jGNLi4c/946pMKSB+fi2IV0NB1aa2IkGVR9RT6xFUU8oOAFiyurb5LLQX X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6ccdee01-41ff-4c15-a101-08db80f52774 X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Jul 2023 03:24:22.2681 (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: UbRcr3wwFP9PkOyT/MO090GS9o8TO8l9jjZ6w2h3Zd6XJ6jQ1ABs6i09zBT/GXyOc1ZyjTHTq9DbuU4kyWe+wQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYSPR06MB6472 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1771002851515881209 X-GMAIL-MSGID: 1771002851515881209 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;