Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp3544177pxb; Tue, 7 Sep 2021 01:54:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyDYMHObbwVoPoLqev7vYnNxtLF/DOwWf1lJdG/Xt6tsBzWgulxeygU1gDuuh1o0CCvDCRi X-Received: by 2002:a17:906:2817:: with SMTP id r23mr17995980ejc.285.1631004898422; Tue, 07 Sep 2021 01:54:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631004898; cv=none; d=google.com; s=arc-20160816; b=s9JiLgMkNfuAeAvNAxD1IkBeaVB6ZHGXwb0b9aaJzpHmlw9DKv9Wvxuvgjjc+pxYEc DCW9N/uefqdxYlWJG63dkDGKtg1yvTgkt2YihKIxI2WgcolyT7Lt8gvQ1YNgI93ORUwK 0MY2Z2tO37CduXslIFJamMv0ZOS8GU9BfQi2JK0mAVdG5IY4CRJ5hi4Ur2IFAAOZKZSe Adpis9URYRA1+FEElWjo1e2oQRHK6nFcJmVYv/o6XbP1zwsl5SYvOehcRyD46jK+cpwx dqFD9q+AstW4ad1IftjpvqPyPrGEWDIdBLjIansCQ0j+wTqNKVhAw5a9oMCnoyFcp4pr VapQ== 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=SLADDf4i8NMzVTEvSUADIiyzn70ksXgwfCqHuJX4p28=; b=kHEqD5mKNJWM5fqup28NGrJsI6ZXoRdtnMGOT6KxiN0FZFsSOZWZDAE5nX3iHb1Cm0 8/lCPCCb4SkRVhXsHaJ1Re4WmtA8Jyn2XSVk7cC96sRXK/hByFcb2oMqdnRRakR9p1Xf NnI3xtxgOe39xyo2QOxFmT8Jpl22ZxIYDYcVTXvcIEhFoW3uaBBnmO7MJHrIRPkFyHO5 32a054L4rigHGDSX+vbV1J4vd/HeH7P6DZS0E49oJqmx7C6LUUC9tiYFyF+SALQJJKeK doZs8PQg/nKdw/XLP58vpDt3TIHajoBfrAsDYQC4kMV51gfKtD3F+ypEgNolq2+MEtOF mCDQ== 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 z6si10966082edp.601.2021.09.07.01.54.35; Tue, 07 Sep 2021 01:54:58 -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 S244371AbhIGIxk (ORCPT + 99 others); Tue, 7 Sep 2021 04:53:40 -0400 Received: from mx20.baidu.com ([111.202.115.85]:35816 "EHLO baidu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S244377AbhIGIxh (ORCPT ); Tue, 7 Sep 2021 04:53:37 -0400 Received: from BJHW-Mail-Ex15.internal.baidu.com (unknown [10.127.64.38]) by Forcepoint Email with ESMTPS id 3FB29BEB6C5AB70146E1; Tue, 7 Sep 2021 16:52:27 +0800 (CST) Received: from BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) by BJHW-Mail-Ex15.internal.baidu.com (10.127.64.38) 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:52:27 +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:52:26 +0800 From: Cai Huoqing To: CC: Michael Turquette , Stephen Boyd , Maxime Ripard , Chen-Yu Tsai , Jernej Skrabec , , , , Subject: [PATCH] clk: sunxi-ng: ccu-sun8i-de2: Make use of the helper function devm_platform_ioremap_resource() Date: Tue, 7 Sep 2021 16:52:20 +0800 Message-ID: <20210907085221.4713-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-Ex15_2021-09-07 16:52:27:223 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/sunxi-ng/ccu-sun8i-de2.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/clk/sunxi-ng/ccu-sun8i-de2.c b/drivers/clk/sunxi-ng/ccu-sun8i-de2.c index 524f33275bc7..7a5ffae0f965 100644 --- a/drivers/clk/sunxi-ng/ccu-sun8i-de2.c +++ b/drivers/clk/sunxi-ng/ccu-sun8i-de2.c @@ -280,7 +280,6 @@ static const struct sunxi_ccu_desc sun50i_h5_de2_clk_desc = { static int sunxi_de2_clk_probe(struct platform_device *pdev) { - struct resource *res; struct clk *bus_clk, *mod_clk; struct reset_control *rstc; void __iomem *reg; @@ -291,8 +290,7 @@ static int sunxi_de2_clk_probe(struct platform_device *pdev) if (!ccu_desc) return -EINVAL; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - reg = devm_ioremap_resource(&pdev->dev, res); + reg = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(reg)) return PTR_ERR(reg); -- 2.25.1