Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp3543918pxb; Tue, 7 Sep 2021 01:54:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwNGhBaG6NT5Uh3syXyuk7TJM0xGCvUX0b0bCpIKNHbRaj0Q/EudTngZcbndHXXYTV55FCz X-Received: by 2002:a05:6402:3188:: with SMTP id di8mr17262962edb.300.1631004862917; Tue, 07 Sep 2021 01:54:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631004862; cv=none; d=google.com; s=arc-20160816; b=Jl1ka9TvMBhReEvnDLvq2T5krKUjpyg5y6cNqsQVSa69Rm57Ye0LciE2uTSRy6ZjrF r2CFbtzP1qt3Nj61KnQnU/mW6zINkqFNiy2mtT/rhxCX5HZr5kItFDnEsgvBublQFnXI 58T8kmokavnNxZ4pgncisoKyUTWV4Nfm9D8qt8T80XhW40aJ4zUsvAIUk8ZTBciHQnYO mGia6YZIrwHEPeblydI3kB+0lssMoV/mw3hl0ZSVHN+k3cFCYDUMstFufldjk7wDVSjt pTM+dWj9ieT5HQzjfyzuv5rmUgzMjgCehVnMcY+p+fsGyvpzCYL/JHOq01M+18Dzvmo6 Kurw== 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=D8XUGvTnEtDV/jwIEspD8OHCVW+k31DmXLt5ODswmEM=; b=jEFlaoeRLC7HcR25uLcXhYyhDs+xw40NgGzK0jttbDtkxSPBE8Ekir8w5hcum/LjZe J1Bzooh8Rc6gpMCxchEqRR3KoBtFpoulJnSOPgnoYKV+55TjjrcdMUYtB7Cz/t+DVtyr ZmEuraRK6T++j4ZbeHA6A4Q83ptuPVRc2GPAgyJ2lkOG5gtucFNxztCA6DJ8p31R238O t9+CEDy6JwPjOuZKM7w0rJrFL6qdBfFGdVFxf5LiCWri8Gjfp7f+M0DL6oxtEPJBqAcz 4ab6y0e+2M4cs6TJLq7Hf4LHq3iMtROMA2JH/XY2PIb3yupDcHyct1Zw2ReAej6TtTKO uYIQ== 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 l17si10550142ejh.84.2021.09.07.01.53.59; Tue, 07 Sep 2021 01:54:22 -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 S244260AbhIGIxO (ORCPT + 99 others); Tue, 7 Sep 2021 04:53:14 -0400 Received: from mx20.baidu.com ([111.202.115.85]:35342 "EHLO baidu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S243766AbhIGIxM (ORCPT ); Tue, 7 Sep 2021 04:53:12 -0400 Received: from BJHW-Mail-Ex11.internal.baidu.com (unknown [10.127.64.34]) by Forcepoint Email with ESMTPS id 292E658A38988DE49321; Tue, 7 Sep 2021 16:52:05 +0800 (CST) Received: from BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) by BJHW-Mail-Ex11.internal.baidu.com (10.127.64.34) 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: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:52:04 +0800 From: Cai Huoqing To: CC: Michael Turquette , Stephen Boyd , Maxime Ripard , Chen-Yu Tsai , Jernej Skrabec , , , , Subject: [PATCH] clk: sunxi-ng: ccu-sun50i-a64: Make use of the helper function devm_platform_ioremap_resource() Date: Tue, 7 Sep 2021 16:51:58 +0800 Message-ID: <20210907085158.4560-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/sunxi-ng/ccu-sun50i-a64.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/clk/sunxi-ng/ccu-sun50i-a64.c b/drivers/clk/sunxi-ng/ccu-sun50i-a64.c index 149cfde817cb..ce21dc09451a 100644 --- a/drivers/clk/sunxi-ng/ccu-sun50i-a64.c +++ b/drivers/clk/sunxi-ng/ccu-sun50i-a64.c @@ -938,13 +938,11 @@ static struct ccu_mux_nb sun50i_a64_cpu_nb = { static int sun50i_a64_ccu_probe(struct platform_device *pdev) { - struct resource *res; void __iomem *reg; u32 val; int ret; - 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