Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp3565638pxb; Tue, 7 Sep 2021 02:35:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzn4MA+CAzHt5Wd7ivMagZ/Go8UQZsQl+oyo/yLBI71ScSJk9KpC/W0AIwaEYpCtYtpqqrL X-Received: by 2002:a17:906:85ca:: with SMTP id i10mr17731817ejy.316.1631007359673; Tue, 07 Sep 2021 02:35:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631007359; cv=none; d=google.com; s=arc-20160816; b=HZw0LB35vdNuTUMk/Npb/aWe4mfomNqSF6qfTunjdYcGArhck65I8nvXTC1zf3IdEp 3PvNWDFDN6y+pH70UVQZgRWsMIkcQW7zT8uWAGwzK5LsP53URpUcipvtKJDS8hOHdQTM ZOBRfl7taZsN8IC5gKjPIQMyQzdA4/Ozi+gTr9Yq6AYvhaZ1Lnokyeaed5mbdWxubVT8 HeDDZe+Okzb+IHfx2GrYcXbbWGGDPBF6nubnoDdzmdWavj1HnXdejKsIvD+o+U0s8I8r jkMDMgfojtjYnwiP6l5Rpt1HQzQg4Hf+BCUyqjCreEgWh/E218aVthZY0w1hZH/miMjZ gNIg== 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=lcMSt3LUg2ujdaD8jnZFAMQC4gSlgJOoN18YMSlzRkI=; b=gMrKmUPiiKvztk17d/czbCgo+NbKN58gqiD2wGQbVvMwyuwsF42CvhJDPZ0b44HDMX yp1HQ1wiQhlRqDQp57GRKwXw7UHBeSQ4EzUte5OzrsxvdDMzFMevYARYbrJz4lMKTarw R0SY622BOm5pxSmTg6p2nplMV0Msn1pwneSi2PnqLQwb3g/W6E6FDVzRBPM198Kq+GD8 ci2Ei4SLJBV7BrHE6V3GNz2doN7Mk8Z3YwbzXJwHwOt9FDddcSA9IHF3NOV8KqZX7f94 AjlS9gYYtdpCMTq5rD3Rpy5RfGkBRep4drnd6Z8LcIVKUe+jcxR9WdDEwCS8cPO1Ppz8 AxDA== 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 gc38si9549877ejc.601.2021.09.07.02.35.36; Tue, 07 Sep 2021 02:35:59 -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 S243223AbhIGItB (ORCPT + 99 others); Tue, 7 Sep 2021 04:49:01 -0400 Received: from mx21.baidu.com ([220.181.3.85]:59338 "EHLO baidu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S242828AbhIGIs7 (ORCPT ); Tue, 7 Sep 2021 04:48:59 -0400 Received: from BC-Mail-Ex06.internal.baidu.com (unknown [172.31.51.46]) by Forcepoint Email with ESMTPS id D5D97C5DAF9D1445C968; Tue, 7 Sep 2021 16:47:51 +0800 (CST) Received: from BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) by BC-Mail-Ex06.internal.baidu.com (172.31.51.46) 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:47:51 +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:47:51 +0800 From: Cai Huoqing To: CC: Michael Turquette , Stephen Boyd , , Subject: [PATCH] clk: fsl-sai: Make use of the helper function devm_platform_ioremap_resource() Date: Tue, 7 Sep 2021 16:47:45 +0800 Message-ID: <20210907084745.3591-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/clk-fsl-sai.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/clk/clk-fsl-sai.c b/drivers/clk/clk-fsl-sai.c index 6238fcea0467..84fbb3e38449 100644 --- a/drivers/clk/clk-fsl-sai.c +++ b/drivers/clk/clk-fsl-sai.c @@ -33,14 +33,12 @@ static int fsl_sai_clk_probe(struct platform_device *pdev) struct clk_parent_data pdata = { .index = 0 }; void __iomem *base; struct clk_hw *hw; - struct resource *res; sai_clk = devm_kzalloc(dev, sizeof(*sai_clk), GFP_KERNEL); if (!sai_clk) return -ENOMEM; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - base = devm_ioremap_resource(dev, res); + base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(base)) return PTR_ERR(base); -- 2.25.1