Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp227081pxb; Mon, 13 Sep 2021 17:42:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxIUCIzWKqZjCulVvAq7CIa+bXSQeHbh45O1y7jqvgYGmlvgr6Rva7fGcITyy28N5+saq/j X-Received: by 2002:a50:9b06:: with SMTP id o6mr16301392edi.284.1631580149160; Mon, 13 Sep 2021 17:42:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631580149; cv=none; d=google.com; s=arc-20160816; b=jBY2/u76i2Lp0bbXtWEpoW9DCMZgEgScyiv/nqdbGGdkDlIaQMN462lOc/UIzybrSZ z9eAdiaOsJOsWA7/lPyTSfvEhMgAb28oLfz+Gj9r+TAIPktLsb0OPuwLEfsdg7injCXI Nrdsja6u1MpRmtXc+vBZaniVsCCiVHjX/858BnvWeL0cuMIK7LI+kzyLWukZ7PMhy1Nd /nzZAmmWHr/w+Hd8HizKyqhFlGZ9FSW/4gXGRB+vWleRxNXLopbgj+FqCKjO6108RraW YIte3J1co0l/Qw7iMqnb59IoOROzg5Vezqalvos8oEaQRr2HBz5JRC1uQmnB3UurySK8 sOSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:cms-type:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:cc:to:subject:dkim-signature:dkim-filter; bh=Zx8D72epb2PdIAupmljFTtGZ+DY+cmCbD9kHxLWNdyc=; b=t3458aKmTjhVzo1X09fImkcqvyzUi0zP7yp1wqvK36NWJHpp2hfb9HLDGvNtWGKADh g2qqIA5Q83x6N4qgCoEF7SA21DFj9sO3ttYbBMjXWWa4bZOkqgJI4y0LW8jg3Dt+yk/0 eagZwrJeP4iGwKid80D5vsphvKDtgMgMV9Y8Gynq2V9vLFwtEwixpw7owJqXKIsb1zOC /XEOorf9dAD+uUg8gSu3kbjJVhtzmD+Wa+Fn2w/jKmzm3dNDLIqGFrNfZjO4fUOfifVg tJJWUYfR77olOjSxTOUodx4EOIOHO9FR17PzKo9Rm57o8knjnK97bjanHTGCjtg4StMu Z8aw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=YSJssw0M; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dz8si8966461edb.30.2021.09.13.17.42.06; Mon, 13 Sep 2021 17:42:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=YSJssw0M; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345595AbhIMQMH (ORCPT + 99 others); Mon, 13 Sep 2021 12:12:07 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:51751 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344663AbhIMQMG (ORCPT ); Mon, 13 Sep 2021 12:12:06 -0400 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20210913161049euoutp023c21018335d030efeb78958ea8ba60c1~kbZRnHPfb2252922529euoutp02D for ; Mon, 13 Sep 2021 16:10:49 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20210913161049euoutp023c21018335d030efeb78958ea8ba60c1~kbZRnHPfb2252922529euoutp02D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1631549449; bh=Zx8D72epb2PdIAupmljFTtGZ+DY+cmCbD9kHxLWNdyc=; h=Subject:To:Cc:From:Date:In-Reply-To:References:From; b=YSJssw0MoxceKzl/PWy+AaV5chfkQDs4sYNnJJh+GpNcHgbBbKJX1zxxYIl2alZZ7 4veLc2VxoF6tCkpNWjqkP+1mPyAL2BTLQCjibZ/33XJje5gnf3RQLwbCQtDmwRsK0s kAbxJAg10YAnWFn2Qtcs9aP/wF5MulMInkq/BTi8= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20210913161048eucas1p267aee7ce54e94beb4d4e6adca6c75b22~kbZRVtuTM2793827938eucas1p2K; Mon, 13 Sep 2021 16:10:48 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id 2F.BE.42068.8087F316; Mon, 13 Sep 2021 17:10:48 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20210913161048eucas1p2b41cd188521dfba255bd47da7e677a42~kbZQoHtI12793827938eucas1p2I; Mon, 13 Sep 2021 16:10:48 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20210913161048eusmtrp1c16b3a5bcecf6e12f4d46664a8584b0a~kbZQnPaEs0906809068eusmtrp1O; Mon, 13 Sep 2021 16:10:48 +0000 (GMT) X-AuditID: cbfec7f4-c89ff7000002a454-c2-613f78082e79 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id F3.61.20981.7087F316; Mon, 13 Sep 2021 17:10:47 +0100 (BST) Received: from [106.210.134.141] (unknown [106.210.134.141]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20210913161047eusmtip2674b7de0c52c723e10efd72d30cd86d6~kbZQCQ33W2037120371eusmtip2u; Mon, 13 Sep 2021 16:10:47 +0000 (GMT) Subject: Re: [PATCH] clk: samsung: exynos-audss: Make use of the helper function devm_platform_ioremap_resource() To: Cai Huoqing Cc: Tomasz Figa , Chanwoo Choi , Michael Turquette , Stephen Boyd , Krzysztof Kozlowski , linux-samsung-soc@vger.kernel.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org From: Sylwester Nawrocki Message-ID: <1ff69b9c-fe27-5da8-8908-c9777be0f72c@samsung.com> Date: Mon, 13 Sep 2021 18:10:34 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-Version: 1.0 In-Reply-To: <20210907085100.4152-1-caihuoqing@baidu.com> Content-Language: en-US Content-Transfer-Encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrFKsWRmVeSWpSXmKPExsWy7djPc7ocFfaJBt+ua1msufeXzeL6l+es Fhvf/mCy2PT4GqvFx557rBaXd81hs5hxfh+TxcVTrhb/rm1ksVi16w+jA5fHl6XNzB7vb7Sy e8xq6GXz2DnrLrvHplWdbB6bl9R79G1ZxejxeZNcAEcUl01Kak5mWWqRvl0CV8a87dtZCi5x V5zpPcLcwHiPs4uRg0NCwETi47+MLkYuDiGBFYwSc7ceZYRwvjBKtP+5yQbhfGaUOL9zN1CG E6xj35eXUInljBLHNt5mgXA+Mkq8udgHViUsUCyxZfULZhBbREBNYsqk6ewgRcwCD5gkbq1+ wgSSYBMwlOg9CtHAK2AnseH9NzYQm0VAVeLTyecsILaoQLLEtL9NzBA1ghInZz4Bi3MKWEpM 37cezGYWEJe49WQ+E4QtL7H97RxmkGUSAt2cEpcO/4G620Vi8d+LLBC2sMSr41vYIWwZidOT e1ggGpoZJXp232aHcCYwStw/vgCq21rizrlfbKAwYxbQlFi/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08nnYDWiAskSb19/Z4KoEZQ4OfMJWJxTwFJi+r71YDazgLrEn3mXmCFscYlbT+YzQdjy EtvfzmGewCg0C0n7LCQts5C0zELSsoCRZRWjSGppcW56brGRXnFibnFpXrpecn7uJkZgvG47 9nPLDsaVrz7qHWJk4mA8xCjBwawkwrvtjW2iEG9KYmVValF+fFFpTmrxIUZToH8mMkuJJucD E0ZeSbyhmYGpoYmZpYGppZmxkjivyZE18UIC6YklqdmpqQWpRTB9TBycUg1MM09FGWx7Yjwz w2ljj7JGWnls6Z1DvqlhO+SE13xhvFS29+C3X726iq8T/xo/yr3Cr/78SUKqMkvkgcC0dQnP 85JiG5rzX7x8y1n8vF545pcozoRdnBzv+dINJGZwfBPaldxfF99j8f6kYfshptPTC2UmPPxR 9rBlMScX43T2CD2LNZ+byoPNb85k2KpkmqVczVzH+SM//8bfpK3J808HP1ZTObVYZH/mRbnf Cb2HvGcx9+wyNhBKlHdi1+V+YXtqziSBqxdLbQMnxE578z3w7hZfm8AnDuv8/eplhTfW6/26 zjR5nlToySOK94zvZR3f95Dr4G+BLXo97aeiyjdXMEyKVCo79DPwrYTbzL9KLMUZiYZazEXF iQBiPVqXYAMAAA== X-CMS-MailID: 20210913161048eucas1p2b41cd188521dfba255bd47da7e677a42 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20210907085111eucas1p12e14f7d5f4ec4cebfbde4f26e68754c3 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20210907085111eucas1p12e14f7d5f4ec4cebfbde4f26e68754c3 References: <20210907085100.4152-1-caihuoqing@baidu.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07.09.2021 10:50, Cai Huoqing wrote: > Use the devm_platform_ioremap_resource() helper instead of > calling platform_get_resource() and devm_ioremap_resource() > separately > > Signed-off-by: Cai Huoqing Thanks for the patch. I have applied it with summary line changed to "clk: samsung: exynos-audss: Make use of devm_platform_ioremap_resource()" so it doesn't exceed 75 characters. > --- > drivers/clk/samsung/clk-exynos-audss.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/drivers/clk/samsung/clk-exynos-audss.c b/drivers/clk/samsung/clk-exynos-audss.c > index 42b5d32c6cc7..9cc127a162ad 100644 > --- a/drivers/clk/samsung/clk-exynos-audss.c > +++ b/drivers/clk/samsung/clk-exynos-audss.c > @@ -129,7 +129,6 @@ static int exynos_audss_clk_probe(struct platform_device *pdev) > struct clk *pll_ref, *pll_in, *cdclk, *sclk_audio, *sclk_pcm_in; > const struct exynos_audss_clk_drvdata *variant; > struct clk_hw **clk_table; > - struct resource *res; > struct device *dev = &pdev->dev; > int i, ret = 0; > > @@ -137,8 +136,7 @@ static int exynos_audss_clk_probe(struct platform_device *pdev) > if (!variant) > return -EINVAL; > > - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); > - reg_base = devm_ioremap_resource(dev, res); > + reg_base = devm_platform_ioremap_resource(pdev, 0); > if (IS_ERR(reg_base)) > return PTR_ERR(reg_base); -- Regards, Sylwester