Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp3566737pxb; Tue, 7 Sep 2021 02:38:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwSMv+7Q+LoL00cWfD/NKQEjx/rqOCvYFDmkkEonxsJUrF8S1QMoD2hiRWmHdz/9F6nf4Hh X-Received: by 2002:a02:ad17:: with SMTP id s23mr14585522jan.135.1631007482588; Tue, 07 Sep 2021 02:38:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631007482; cv=none; d=google.com; s=arc-20160816; b=nIAhWz+XIa781KNSQoZooV2pfU4kQ5vmMt+XWJsmOxQldtmBzTlfJNVM0fWWnxItaz l9eo5f2eTo1q/9DMAkyv8RkYtSFaWQt3fU04OIuMNrMkWlKUiXiEGm6KOBa/zElQNhOh m+A7bl+WIXfW5aqcUprYv/qnBIMq6IBLO2d0YvLklNivoKS3ZS5wU0t74w9svRvtOxHs 3VgYRgGMO/KheIYZaOlrrKtwG24mp6QrcWYENHfeNfcVe44rgPnk+KQAU1GaneWTR8qh IurOER3p1SxfijReW6mwdpTnXR/2ZSanb7bIt9O3t3AQOlRUEZ/1llLPJHybN+lxoGhH lpjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=eTB5DZgOKRNVZ4Pmw0IJL1Oh0U/IdahSPDMWHNfpk5M=; b=TJLWT3lsjJGHRhN7tV8efv4kOH/DFtJq+6QuQ+Br++AfEAjCJUwhhg5jtCV3tr9QF8 ziCJEUyqKo+Qy8s22nh5FjmsF1b0xmoaPykXIqlJKsFL0rvL2LtCORkBxG2cTZIDCtSZ SoKpejYC4wiDLOMF0oFv8//5kugYmx49DE3h6X3d3Ez7V7oNNQiQlNmXmU908SnQSyTK hHoRddgpV8Lckzof75zlZFuQwI51PmwlPF5Ec8ufkw3d3p0ZW857lWKz+Lc+v+PgagEx nJ9EqHuxwdaYOTVKKbCYWKoZDxHwFVlMPabG8UrWz4+MEC2zlWwnYea2LbTyl+BrJCV9 VOhg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a5si10096071ioo.37.2021.09.07.02.37.50; Tue, 07 Sep 2021 02:38:02 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243411AbhIGIwl (ORCPT + 99 others); Tue, 7 Sep 2021 04:52:41 -0400 Received: from mx21.baidu.com ([220.181.3.85]:34692 "EHLO baidu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S243759AbhIGIwg (ORCPT ); Tue, 7 Sep 2021 04:52:36 -0400 Received: from BJHW-Mail-Ex06.internal.baidu.com (unknown [10.127.64.16]) by Forcepoint Email with ESMTPS id C13A1D17CE3D441FF4CA; Tue, 7 Sep 2021 16:51:28 +0800 (CST) Received: from BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) by BJHW-Mail-Ex06.internal.baidu.com (10.127.64.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14; Tue, 7 Sep 2021 16:51:28 +0800 Received: from LAPTOP-UKSR4ENP.internal.baidu.com (172.31.63.8) by BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14; Tue, 7 Sep 2021 16:51:28 +0800 From: Cai Huoqing To: CC: Sylwester Nawrocki , Tomasz Figa , Chanwoo Choi , "Michael Turquette" , Stephen Boyd , Krzysztof Kozlowski , , , , Subject: [PATCH] clk: samsung: s5pv210-audss: Make use of the helper function devm_platform_ioremap_resource() Date: Tue, 7 Sep 2021 16:51:21 +0800 Message-ID: <20210907085122.4305-1-caihuoqing@baidu.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [172.31.63.8] X-ClientProxiedBy: BC-Mail-Ex09.internal.baidu.com (172.31.51.49) To BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) X-Baidu-BdMsfe-DateCheck: 1_BJHW-Mail-Ex06_2021-09-07 16:51:28:775 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use the devm_platform_ioremap_resource() helper instead of calling platform_get_resource() and devm_ioremap_resource() separately Signed-off-by: Cai Huoqing --- drivers/clk/samsung/clk-s5pv210-audss.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/clk/samsung/clk-s5pv210-audss.c b/drivers/clk/samsung/clk-s5pv210-audss.c index a7827a120695..b31c00ea331f 100644 --- a/drivers/clk/samsung/clk-s5pv210-audss.c +++ b/drivers/clk/samsung/clk-s5pv210-audss.c @@ -63,15 +63,13 @@ static struct syscore_ops s5pv210_audss_clk_syscore_ops = { static int s5pv210_audss_clk_probe(struct platform_device *pdev) { int i, ret = 0; - struct resource *res; const char *mout_audss_p[2]; const char *mout_i2s_p[3]; const char *hclk_p; struct clk_hw **clk_table; struct clk *hclk, *pll_ref, *pll_in, *cdclk, *sclk_audio; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - reg_base = devm_ioremap_resource(&pdev->dev, res); + reg_base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(reg_base)) return PTR_ERR(reg_base); -- 2.25.1