Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp948472pxb; Wed, 6 Apr 2022 05:06:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyNpWKFf9bnNexsu5GqMRgmmWYY5HkBr6MlQ0/azg/wv+ink7nUXqKxisDySXMaaujKppQa X-Received: by 2002:a6b:f405:0:b0:640:a963:2c24 with SMTP id i5-20020a6bf405000000b00640a9632c24mr3909870iog.110.1649246760239; Wed, 06 Apr 2022 05:06:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649246760; cv=none; d=google.com; s=arc-20160816; b=cG5tl8K8feVZt3Ipn6EcDktG/MN8SBZidsOBh/Vzh8dh+fUYCQaEKseVXkyd2v+gCJ C6fUDc0Ra4Shoy8Fg5jozaOwkAivsRTOG1YkEGu3RzvEU9/9nUfp/LsiPwdVq2Sa/yvX v8vUZuAL8kJwhHdixVhtakE3ItMVj7XODOdAEVT9VAsO2M34yZz4FUuC17BQo0rsh2F9 O9101AHmNXStvaZrHyrJdy1waaUNdN4f1qpTmyXBVAb7aEvKK/O0bTIjIDspuGW85uew 6Fql6ZD0MLm1Eb6wg6IUC7T0v4HoNu2mouIANNE4a8L/zhltWuEcNzkmE8gtWHpFgQiE d8pw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=9wYFZenYmPHErOqty8VtkAwpizVtn4O3eHc3K0wAVs8=; b=hp4zzceLbxiyF55PE6AGKRocmJpVo8kBGaw3boz2xtTBpqGj7HwT2Cgq9RXNGYSsVJ u2uPBKfzcKs1RFz8uaU+Xb7MXWQipMN/3Zi1EwdkclzOKm4Ix0Nq89ZVIKSXydxXQpCz 5VmUgYOVvxETUcfCtK7WFIAMU9Isotr7ZAiKCfS2d0o6ztrIWAajpea2MFqLaXpJeTha Bau7XuyG3VU1bYKw2uck6ImyKZOiS1FiCUgzxgF4kg5KDRTXfFmRZw/W81Lc2qAfq4nM mRKF6MCgGQXLMipFEkHJs/dEu09fYQsnKNtN6nB0phInSUozAIvuLsaAWZCZMO7m4ddH lsNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=tjGKHMQE; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id j19-20020a056638073300b003213331328fsi8106877jad.93.2022.04.06.05.05.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 05:06:00 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=tjGKHMQE; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 52343682DEC; Wed, 6 Apr 2022 03:33:44 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348928AbiDFADz (ORCPT + 99 others); Tue, 5 Apr 2022 20:03:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47660 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348911AbiDEJsp (ORCPT ); Tue, 5 Apr 2022 05:48:45 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0BB18ED9E5; Tue, 5 Apr 2022 02:37:17 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 9E66961368; Tue, 5 Apr 2022 09:37:16 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A9AC1C385A0; Tue, 5 Apr 2022 09:37:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649151436; bh=XDVEjUMqTpwWEOMlL/Q2oJIgCZcnl9tgaB3ynEV6gtw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=tjGKHMQEULu8CLvx0ygdz4vZlN9DnpdXCPT3WYihqmbkgjmgCFL9TOZb8kbsIbBD4 xdFEm4ponhDsJ05zSOJySQoSO4D9TGENv4M5MYRKJkGcLiKTZyfCiA/kssdJ9NpgwI Y02QlirCneiSAvqpUrpYxlvJ/gWEECPCbPIZthbM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Cai Huoqing , Neil Armstrong , Sasha Levin Subject: [PATCH 5.15 375/913] drm/meson: Make use of the helper function devm_platform_ioremap_resourcexxx() Date: Tue, 5 Apr 2022 09:23:57 +0200 Message-Id: <20220405070351.088604519@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220405070339.801210740@linuxfoundation.org> References: <20220405070339.801210740@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 From: Cai Huoqing [ Upstream commit d4cb82aa2e4bc0e46582a625cb41b64c83fdde49 ] Use the devm_platform_ioremap_resource_byname() helper instead of calling platform_get_resource_byname() and devm_ioremap_resource() separately Use the devm_platform_ioremap_resource() helper instead of calling platform_get_resource() and devm_ioremap_resource() separately Signed-off-by: Cai Huoqing Reviewed-by: Neil Armstrong Signed-off-by: Neil Armstrong Link: https://patchwork.freedesktop.org/patch/msgid/20210831135644.4576-1-caihuoqing@baidu.com Signed-off-by: Sasha Levin --- drivers/gpu/drm/meson/meson_drv.c | 3 +-- drivers/gpu/drm/meson/meson_dw_hdmi.c | 4 +--- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/meson/meson_drv.c b/drivers/gpu/drm/meson/meson_drv.c index 62846af2f5e5..923377f856de 100644 --- a/drivers/gpu/drm/meson/meson_drv.c +++ b/drivers/gpu/drm/meson/meson_drv.c @@ -206,8 +206,7 @@ static int meson_drv_bind_master(struct device *dev, bool has_components) priv->compat = match->compat; priv->afbcd.ops = match->afbcd_ops; - res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "vpu"); - regs = devm_ioremap_resource(dev, res); + regs = devm_platform_ioremap_resource_byname(pdev, "vpu"); if (IS_ERR(regs)) { ret = PTR_ERR(regs); goto free_drm; diff --git a/drivers/gpu/drm/meson/meson_dw_hdmi.c b/drivers/gpu/drm/meson/meson_dw_hdmi.c index 2ed87cfdd735..0afbd1e70bfc 100644 --- a/drivers/gpu/drm/meson/meson_dw_hdmi.c +++ b/drivers/gpu/drm/meson/meson_dw_hdmi.c @@ -978,7 +978,6 @@ static int meson_dw_hdmi_bind(struct device *dev, struct device *master, struct dw_hdmi_plat_data *dw_plat_data; struct drm_bridge *next_bridge; struct drm_encoder *encoder; - struct resource *res; int irq; int ret; @@ -1042,8 +1041,7 @@ static int meson_dw_hdmi_bind(struct device *dev, struct device *master, return PTR_ERR(meson_dw_hdmi->hdmitx_phy); } - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - meson_dw_hdmi->hdmitx = devm_ioremap_resource(dev, res); + meson_dw_hdmi->hdmitx = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(meson_dw_hdmi->hdmitx)) return PTR_ERR(meson_dw_hdmi->hdmitx); -- 2.34.1