Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2849186rwl; Thu, 13 Apr 2023 11:41:58 -0700 (PDT) X-Google-Smtp-Source: AKy350YBBIxV6UoScTDYRyUhpsYS8N5ujXrbU0L0Gda/EXAkZWYQ32Lh2caI+N81yuDdz9YNqkoU X-Received: by 2002:a05:6a00:15cd:b0:633:20bb:5bf8 with SMTP id o13-20020a056a0015cd00b0063320bb5bf8mr5376586pfu.17.1681411318129; Thu, 13 Apr 2023 11:41:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681411318; cv=none; d=google.com; s=arc-20160816; b=NQ6JVL7Zpd34XS3ry+pwAWSjSbD6gx/M7RyI+HsjOBJ/4ShYat7KJOcQqsVrVz3tn2 XbTXWSYwhxyLSPkXcWPH+1AFDhU7Pvxx2GsF+clwL0ju5Y4yhaKjGS0T3kQXLfAiJGJY IndHxQhufo4bVdIk30pv+cGbVGOep5cjCnRQIbKgeDPm1vJlolCq6f0bHgjXEsXaCsl/ EntRSwRwPd3PEWTtUBgW9YcuhXMPy85yizDR7X0XiboGCyoo24/ALcwgbDnU98WZCsnZ NeJFxUTvwkrkvgPkWo9N8wdzVDEDyg1HZMsmJpXZbPYcx0DvgmoixIszr0/eDebrZgun IVSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:date:to:cc:from:subject:references :in-reply-to:content-transfer-encoding:mime-version:message-id :dkim-signature; bh=2A0Cbt+qgxFGgrMPnwGwp48JgCRL27ag+TlcYsekpC4=; b=lyu1OArlxbOAb6XjbgB/AyEvDj1mOsKGS0CFTUK4ARjri+OSqurEutBQxDnRQc/zTz PZMwteWBTFGVWfgxNzIC9Y14mAeUSoTL0B+L3jcLpb+Xvb+ORBqMRc32vl+3yKUv092G V5/9dRqc3ZxZDB7VuLz4ZvyRa2a56AJjjIH5hYH3/hQe+RogY2RX9E09fWKHRcZWdTbd Ade9+S0SBstBhxcAoKLnYGzKAheSzr9rdreTFHtq4osXOY6yivDD3b3fyKU2Bif9gF7R qgUFvUthvWUirtg6K1b3Pk0KcYnODE/Qun/r9tv2/eItghIBuij1PUItaGlbUVsTQn6H sJOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=C1b7JS3g; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 74-20020a62174d000000b0063b2655def0si2417961pfx.47.2023.04.13.11.41.44; Thu, 13 Apr 2023 11:41:58 -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=@kernel.org header.s=k20201202 header.b=C1b7JS3g; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229869AbjDMSkd (ORCPT + 99 others); Thu, 13 Apr 2023 14:40:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58544 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229836AbjDMSk3 (ORCPT ); Thu, 13 Apr 2023 14:40:29 -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 8CD487DB0; Thu, 13 Apr 2023 11:40:25 -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 23B30640B7; Thu, 13 Apr 2023 18:40:25 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 536EDC433EF; Thu, 13 Apr 2023 18:40:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1681411224; bh=mwYnTH2xTUlzJflPd1vC123IfsPEl3nEWJIFOU/ryso=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=C1b7JS3gODDSYYlBDTIpxlgxG1R4XL1R85N0pALFWGPerftCQh/QgRTkSYmNuEYE9 L/Edkv3kS7VyqrGIxRIIdjjQO2xm/Qoe5ITC3m4M51owUTozFTFYrb45KhE0FrHJ9E yjniCCFn4wdkU5OC0UqrILGm8af4piU0eXT+ootGLCww0CkSFCgOTSkv41JoWKduH1 wNXgpYg6SbGBH3SUhdHfLx6632/mSuRMo2Q/jkQfKPur8yk4bqg7cVIAPHLTp5pE43 rCPZVphcdd8JaZowPPREGMbP25Ke1cssVQFxLKe/7IZLp0MzhMSd+NPktv81meIG13 zpAqAywMfmBGA== Message-ID: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20230413090128.60119-1-gehao@kylinos.cn> References: <20230413090128.60119-1-gehao@kylinos.cn> Subject: Re: [PATCH] mediatek/clk-mt8173-apmixedsys: convert to devm_platform_ioremap_resource From: Stephen Boyd Cc: gehao@kylinos.cn, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org To: Hao Ge , matthias.bgg@gmail.com, mturquette@baylibre.com Date: Thu, 13 Apr 2023 11:40:22 -0700 User-Agent: alot/0.10 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS 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 Quoting Hao Ge (2023-04-13 02:01:28) > diff --git a/drivers/clk/mediatek/clk-mt8173-apmixedsys.c b/drivers/clk/m= ediatek/clk-mt8173-apmixedsys.c > index a56c5845d07a..fe386bf8225d 100644 > --- a/drivers/clk/mediatek/clk-mt8173-apmixedsys.c > +++ b/drivers/clk/mediatek/clk-mt8173-apmixedsys.c > @@ -90,7 +90,7 @@ static int clk_mt8173_apmixed_probe(struct platform_dev= ice *pdev) > struct clk_hw *hw; > int r; > =20 > - base =3D of_iomap(node, 0); > + base =3D devm_platform_ioremap_resource(pdev, 0); > if (!base) This needs to be updated. > return PTR_ERR(base); And PTR_ERR(NULL) is 0, which is wrong.