Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp31551382rwd; Fri, 7 Jul 2023 00:37:31 -0700 (PDT) X-Google-Smtp-Source: APBJJlGlx0/fhXL5xnk9qK5RHaZ26+CxFuAQkeEXTnyafQu7vYSdUUM+b18SUoYys4/R6iaU+olI X-Received: by 2002:a05:6808:315:b0:3a3:6f81:49e0 with SMTP id i21-20020a056808031500b003a36f8149e0mr4072361oie.6.1688715451097; Fri, 07 Jul 2023 00:37:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688715451; cv=none; d=google.com; s=arc-20160816; b=v8eVSmpz/Yj3eLOZ+ZV/lbGjFBK7FzbPpGb1RCWLw4wtbsMalRleQPWH3EZM3kSxqK olwynO2njNVQ+eJ4h79fatBZPoR8pnez5zjH0ZlTjmil2USCkComF39sLolGA8zvobnN 6SmEIqZXBHhO8JgpKOQp/8T+1RiP/Xdj2x8Ke8Ey0yn453vNtsl7W2PqXQSoUVQbqhT7 n+Hg0z//KexKAqHMh3mWDraQfeF3IyE6qeOyCfSdBp7ftqJU/hT9xJDtcXyDYXJ9l8TL eGlpxnMIlf1clvxSCzN6Jh9DmdpbCdfXuV9d4rZxdOn0kg2Los8LDMvGgs0juUPvWF15 /ptw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :organization:references:cc:to:content-language:subject:reply-to :from:user-agent:mime-version:date:message-id:dkim-signature; bh=mfGfzIB+RcA72dyodym3yq746uqRLSsXTKVVkcw8AD8=; fh=Z6Bf9Axpu0VogNumgP/S31jY9c9o7L4kmjAX5aV/AL8=; b=QBmiNg79+fvkrir7zO+BvA97rpkFLwatMEuGX4SdDLiUIqsPeDvON39KU8vJ6IoVnP KHu5ftWZ/ABWquVQoWSxy+s7VIvGFOHJkxwBFGp+8GfP1ov6/S33Lxevqs7eoIbQ3FSw 41Wr7QJtxGur93EEivHySvDXinz4tdl7KmzKwAVMgKDTDxffrePJwEvUkcWR+sXQn/5f Jkw0rqK5t9xxXzN8t/nRA4fBgRANL41z23V7LBIChXAelYw6MWr9k0G20lD8OpdQvksE H0fS0cwqmZPolVfiTsUXQhNSTZEYM786LCTZVA45rTCv4zX0BgZ1upXs1+Qs6i3XBcJh uBTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=G0luk0up; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d20-20020a056a0024d400b00679a6ce03f6si3378416pfv.59.2023.07.07.00.37.19; Fri, 07 Jul 2023 00:37: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=@linaro.org header.s=google header.b=G0luk0up; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232327AbjGGH2B (ORCPT + 99 others); Fri, 7 Jul 2023 03:28:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60496 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232454AbjGGH1x (ORCPT ); Fri, 7 Jul 2023 03:27:53 -0400 Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CB0711FCE for ; Fri, 7 Jul 2023 00:27:50 -0700 (PDT) Received: by mail-wm1-x32e.google.com with SMTP id 5b1f17b1804b1-3fbd33a57dcso17128935e9.0 for ; Fri, 07 Jul 2023 00:27:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1688714869; x=1691306869; h=content-transfer-encoding:in-reply-to:organization:references:cc:to :content-language:subject:reply-to:from:user-agent:mime-version:date :message-id:from:to:cc:subject:date:message-id:reply-to; bh=mfGfzIB+RcA72dyodym3yq746uqRLSsXTKVVkcw8AD8=; b=G0luk0upz8DSdbX6QT6rROaZMATKsr9FAmewd7D9/BT72cYJnx6Xt/yPD4ZcZr+bHv ikZ9fZZQGnAxx/hgxxD9DXEhaAAcNmwtkd5XKQaKQDxvWuxTVjsw4qe+FvQSb7A76ZeR JSrbS2GWudguU+JqiMNsd9Q7Tejsm7Cl9gV0FXqU/plqaXIXNNs76HPqJYxXQ3peHtsU h+53sCYRocwqAz8CGygdBNzoFghJtDzRoN1Vm+r+xAQfsEpBMNyf9ZWOqGxs39vCod4q XJnlgr4gxZRtHIJEiM3sewMnZAwZGhlndBy/8JHcVhm0u5n7Y91xfIrsmbPB1KIhrq3c O5Tw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688714869; x=1691306869; h=content-transfer-encoding:in-reply-to:organization:references:cc:to :content-language:subject:reply-to:from:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=mfGfzIB+RcA72dyodym3yq746uqRLSsXTKVVkcw8AD8=; b=KnwcJIlIXJHBfe7v+jeuiO7eq6j9++Z5fdh68uZby0Q8XfPkhOk3rNxVF/UCqPJKLs roL3QH4SaOsRVRHUAyAWSY0cDTjcnXfmd1K5yMyCZ+R7I3/5h0GslD3Xprv6PSZIRZ3F qWhDL9dsLpGhIS/y404LK5EyqZU41iaBzZUVN9pGu95OLgb2PdwWDlsUDfe6kJw1sEi3 PVuO0ZDsLdHc49MNdbwjcH37HYiATHFbHTRNRk3+oY+A3DeQNDr5sRxsgau2/aq2RwzP UQUogq9ZN9u30zBwzPo+gGomdG6kmO2ddu3JHiJRDdIce1UBkakNdkntNMEAeH8w5kLq +zmA== X-Gm-Message-State: ABy/qLawKjEO9iPoaUtPkbd/bg72Lo039kT+ZAwJLACKh/x2MpeKXGGY ePnXpG5fTIj94WPY4vByKKtuOQ== X-Received: by 2002:a05:6000:4ec:b0:314:1483:d8ad with SMTP id cr12-20020a05600004ec00b003141483d8admr3314256wrb.44.1688714869253; Fri, 07 Jul 2023 00:27:49 -0700 (PDT) Received: from [192.168.27.65] (home.beaume.starnux.net. [82.66.176.246]) by smtp.gmail.com with ESMTPSA id g7-20020adff3c7000000b00313e59cb371sm3736792wrp.12.2023.07.07.00.27.48 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 07 Jul 2023 00:27:48 -0700 (PDT) Message-ID: <3c0ff63e-a35d-60b6-38aa-178219e65cbd@linaro.org> Date: Fri, 7 Jul 2023 09:27:47 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 From: Neil Armstrong Reply-To: neil.armstrong@linaro.org Subject: Re: [PATCH 07/18] drm/bridge: analogix_dp: Convert to devm_platform_ioremap_resource() Content-Language: en-US To: Yangtao Li , Andrzej Hajda , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , David Airlie , Daniel Vetter Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org References: <20230707072034.48977-1-frank.li@vivo.com> <20230707072034.48977-7-frank.li@vivo.com> Organization: Linaro Developer Services In-Reply-To: <20230707072034.48977-7-frank.li@vivo.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,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 On 07/07/2023 09:20, Yangtao Li wrote: > Use devm_platform_ioremap_resource() to simplify code. > > Signed-off-by: Yangtao Li > --- > 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; Reviewed-by: Neil Armstrong