Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp3566284pxb; Tue, 7 Sep 2021 02:37:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwHp7vjN90kmQ0icuAfvd4Der+SDG6rsLrS2pHyS8i4KRVtA2ifflOeDyIfbOpiNwwB6zLX X-Received: by 2002:a02:664c:: with SMTP id l12mr8714644jaf.140.1631007434317; Tue, 07 Sep 2021 02:37:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631007434; cv=none; d=google.com; s=arc-20160816; b=jjkY/Ye7MSTXqxdXVtWaEmpd7KvLIYmbKu8lx4qdXBC8ZZp7Tsxr7R2W2TtGaTScWa D0IotTHcYE8d45Ow09q81JZ1ptv+BIN/OpaX400VbW+Syc1IUMwAyKVzovm2sn5g4F09 k0OHL85EPJvSV2rus10s8eZWM9V64Nss2Ck9vvow4tdRiPtY0o3wXUGGhECSZpxXEqOm OKYZq9WEsfsU3x2xrq2BpvmMK9DTBeI+gKMr+zV/IfAWMJZHdQP0TD1OJUgLPO5ONJuC gPDv9xzoqXNXs6Cw1/yE5LGOfch5qBWthNujULxr/yDnkxrd7oIDwc7qg5JCcUsVuq8c I/Ug== 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=Q6agwPCdSKjENaiwpSW1iejXIx+Gu3tXb0NCY+uhT7c=; b=UI+wlXh0wCfKXUHtAnZP7GQxz4Op1792ArylGD+X6v37nwGp5DqWvApxzNF7j/Lret sbseLpfkSgGm0heqhuvPfV5Pi4p+P0xT1Wl0235v38vEneE+S2uBwiaKZwCaM2tyEbR3 pEnf7kXTF8c/JUEfd4RJVPnrnPUYAyrp26zt7MdCluIv4R6fKzTCDPkvQAJ4YAQcMbMa 4cqHtXe30aD0d+0tMyYssGj6hc8qswSE4tNQIbo2OvdNuL6/IUOpQrKoundPQrgdzN8r lGrjRph/9OBwe9HsVdSZYqTZw9v2jTJ9kaKPvHs4t9wbFTKAJ7UagrvaRq7GLyyJilUs 3jvA== 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 b12si9452847ila.38.2021.09.07.02.37.02; Tue, 07 Sep 2021 02:37:14 -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 S243240AbhIGIwP (ORCPT + 99 others); Tue, 7 Sep 2021 04:52:15 -0400 Received: from mx20.baidu.com ([111.202.115.85]:34160 "EHLO baidu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S243065AbhIGIwO (ORCPT ); Tue, 7 Sep 2021 04:52:14 -0400 Received: from BC-Mail-Ex17.internal.baidu.com (unknown [172.31.51.11]) by Forcepoint Email with ESMTPS id 8775FF06CB1536681609; Tue, 7 Sep 2021 16:51:06 +0800 (CST) Received: from BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) by BC-Mail-Ex17.internal.baidu.com (172.31.51.11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2242.12; Tue, 7 Sep 2021 16:51:06 +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:05 +0800 From: Cai Huoqing To: CC: Sylwester Nawrocki , Tomasz Figa , Chanwoo Choi , "Michael Turquette" , Stephen Boyd , Krzysztof Kozlowski , , , , Subject: [PATCH] clk: samsung: exynos-audss: Make use of the helper function devm_platform_ioremap_resource() Date: Tue, 7 Sep 2021 16:50:59 +0800 Message-ID: <20210907085100.4152-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) 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-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); -- 2.25.1