Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp3542942pxb; Tue, 7 Sep 2021 01:52:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxICLeTHOKHHEpC2qli+NftIDvGLeKNPaeD+41DgQgTySDA8hhdqeiVDWUEV9GphYck9tOy X-Received: by 2002:a17:906:25db:: with SMTP id n27mr17855312ejb.108.1631004752426; Tue, 07 Sep 2021 01:52:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631004752; cv=none; d=google.com; s=arc-20160816; b=krFXDYSjO+GfSa5qhqUCiU755plI0PJFv992McYiKSphis4hqc88KGPyc3FXSjz6Fz rHy24ekV6++ggCxGOPtt0G4Qng8I5XsCNQtLT0097ecQcbUqpZ6jp+aT/Sb4/bXgCMlw 1iIZRJPUZVSURJ6A/Wug09/gfJgNzmzP+8SLYa9EXaNjaEMhddbvKppCEDdGC6VuG532 pKOiqDaRXHfO3VMvGDbBIz2cJjjAWmfVY0uoSnAl1Cdqa0ZpOTLWIlXtBIaSUQE8QX74 xOvyh1nKcsuZs2vURFt+468U7aefZAOKXuIl1R6alowFLV8ba/9lj3j9lsyEQJrpi5G/ Vakg== 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=bGb3Padid1EHxiMfp9Rmc6eYF6oGNsO6YgVzgY7Uh2k=; b=YI+ANHONXZB6W9kNyLCOBdG6xrEaa1y9kqSDiWK92mNHNnN9tiTMMtSgvaSA/lW5pm 2RNAKRJcJumHaJDiJp3+Q/fKVNtVb+7tBrjE/EF/mFpTguATKrhL5lKpYo1YEjh3mPGf 29f2Dtvt/jxAQW7//DK3iRoe7MjcyPtU1b9t5Wdj2kt30M5ehAeZvKjn+EdLiaVEqAc0 tKVc0B1JjxkoX8bK/H7oypZmpmc69WHBhNa7/D6gF7oUvUE4z5KhspBlQ55sqpqt4kwY YXsXXdbqQ5CurWXTQGYWcQGNZ7F6/B75zy09rUaQywHQA1fiZqEFZWxAXmRnWGCuUeKR 8NZQ== 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 hr13si9854956ejc.66.2021.09.07.01.52.09; Tue, 07 Sep 2021 01:52:32 -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 S243668AbhIGIuZ (ORCPT + 99 others); Tue, 7 Sep 2021 04:50:25 -0400 Received: from mx21.baidu.com ([220.181.3.85]:60594 "EHLO baidu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S244064AbhIGIuP (ORCPT ); Tue, 7 Sep 2021 04:50:15 -0400 Received: from BC-Mail-Ex20.internal.baidu.com (unknown [172.31.51.14]) by Forcepoint Email with ESMTPS id 9B60573ACCE0CD13C9DE; Tue, 7 Sep 2021 16:49:04 +0800 (CST) Received: from BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) by BC-Mail-Ex20.internal.baidu.com (172.31.51.14) 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:49:04 +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:49:04 +0800 From: Cai Huoqing To: CC: Andy Gross , Bjorn Andersson , Michael Turquette , Stephen Boyd , , , Subject: [PATCH] clk: qcom: kpss-xcc: Make use of the helper function devm_platform_ioremap_resource() Date: Tue, 7 Sep 2021 16:48:57 +0800 Message-ID: <20210907084858.4101-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/qcom/kpss-xcc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/clk/qcom/kpss-xcc.c b/drivers/clk/qcom/kpss-xcc.c index 8590b5edd19d..4fec1f9142b8 100644 --- a/drivers/clk/qcom/kpss-xcc.c +++ b/drivers/clk/qcom/kpss-xcc.c @@ -33,7 +33,6 @@ static int kpss_xcc_driver_probe(struct platform_device *pdev) { const struct of_device_id *id; struct clk *clk; - struct resource *res; void __iomem *base; const char *name; @@ -41,8 +40,7 @@ static int kpss_xcc_driver_probe(struct platform_device *pdev) if (!id) return -ENODEV; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - base = devm_ioremap_resource(&pdev->dev, res); + base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(base)) return PTR_ERR(base); -- 2.25.1