Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp3543881pxb; Tue, 7 Sep 2021 01:54:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwSdg35Aff7WalONDIQGHE2sIC43O41ss6X95Kz6Q9x+nme2LFeA2CR6BUfCbk1F9dc2IoU X-Received: by 2002:a05:6402:27d0:: with SMTP id c16mr17095402ede.78.1631004869669; Tue, 07 Sep 2021 01:54:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631004869; cv=none; d=google.com; s=arc-20160816; b=Td+ygwwfdUzmrtw4mZ9wgtMpa1KJbTLWDYOktllDVrbBqvJ7rnyIdrb6KQk/YGzFuX sTB4KehIbM9gC2l7h2HNuHgP0l5UbOqoKmyzxXFsFA9WAUiWSAKGCvID52XCMTWjHCus A59GBlHh2zNRz/2HbrCREQpklaxPjjH9U2WvV3voYvVq0uVvgnTo3nmirb4LTZPIw6Bu JHqNM9bxq2i9i4RTbbkTEJ5Ww1grOg4WWir5YOfAwC8aHjRsWYvfDONP3Ho08k2xHDUX C57z50R+Vo/rhCv4GQqM7/GkMKciJ3ULLyeTc7EZQTGZqZZkazCJLHTO8KnldbGkFI/l euVA== 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=zrWlEcwHzuVqZag4fcPqTY6l12ptbO18R+47BgIVJK0=; b=dxekjcrYJqJH4orixbqrfGUToQDDRMEm2HIDCU3BMcRfm31/hyzR4m2HI7KpqBIHPM wxRLuVAJlw7Lm95J4/y49WAQASrr4gD/H1VEUavtmMzCWiPv1Yd6LcbRg99FlmvUIKmF VKwKH7SzMNR6Z5kOf2ihwR6Eg+m4cXUWNW9gMRQH97GXOdfl1vzIw43VlVraTc+Wusio qpVG1hSrtI0fzSnrEuIKY48Mbr3cc7tx2Mh9TbuRwuF53oLWR1+k5sn1/1vml7M6vPU5 JDZ2t/28+roR79a/UiqOpAQ0dHcwBuRn1EKKHRgF+M3wtch0KyLfJ+a8KBv5Hp1qrP5p Ds2g== 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 dp9si10693660ejc.163.2021.09.07.01.54.06; Tue, 07 Sep 2021 01:54:29 -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 S243735AbhIGIxU (ORCPT + 99 others); Tue, 7 Sep 2021 04:53:20 -0400 Received: from mx20.baidu.com ([111.202.115.85]:35518 "EHLO baidu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S244309AbhIGIxU (ORCPT ); Tue, 7 Sep 2021 04:53:20 -0400 Received: from BJHW-Mail-Ex10.internal.baidu.com (unknown [10.127.64.33]) by Forcepoint Email with ESMTPS id 80E817D566AF2158EA86; Tue, 7 Sep 2021 16:52:12 +0800 (CST) Received: from BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) by BJHW-Mail-Ex10.internal.baidu.com (10.127.64.33) 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:12 +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:11 +0800 From: Cai Huoqing To: CC: Michael Turquette , Stephen Boyd , Maxime Ripard , Chen-Yu Tsai , Jernej Skrabec , , , , Subject: [PATCH] clk: sunxi-ng: ccu-sun50i-h6: Make use of the helper function devm_platform_ioremap_resource() Date: Tue, 7 Sep 2021 16:52:05 +0800 Message-ID: <20210907085206.4611-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-Ex10_2021-09-07 16:52:12:488 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-sun50i-h6.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/clk/sunxi-ng/ccu-sun50i-h6.c b/drivers/clk/sunxi-ng/ccu-sun50i-h6.c index bff446b78290..dd84266fb64b 100644 --- a/drivers/clk/sunxi-ng/ccu-sun50i-h6.c +++ b/drivers/clk/sunxi-ng/ccu-sun50i-h6.c @@ -1183,13 +1183,11 @@ static const u32 usb2_clk_regs[] = { static int sun50i_h6_ccu_probe(struct platform_device *pdev) { - struct resource *res; void __iomem *reg; u32 val; int i; - 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