Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp3544353pxb; Tue, 7 Sep 2021 01:55:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyKXd4igUi6rYGEtt7P5rLc3SQvgF41bGyZiZ8iX82/ETlYa6qQceWlqnFGnIYSGxXnD+9J X-Received: by 2002:a17:906:c298:: with SMTP id r24mr262898ejz.93.1631004919944; Tue, 07 Sep 2021 01:55:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631004919; cv=none; d=google.com; s=arc-20160816; b=G5P2Fs788MqLQKDH4xsX34Er6aeaQBO5NHgpJy0rWUAcJ/Ewyd2PTsU20U0tLzAZDW 25+CvMRCvcMoSVI9eP45h2TQ7RbfPItcyCsBDxGvp3VS7e59Nh2XoFNbGft9rAmcUrxS jZrLCMedDoIW8y/OZVUFLuZZUTN+GHEyl2Km30dD5B4swfWKjb7Rntmkr0jKnPmZhZmL ko4+Spshkzi7oqUzoi9RtDw1KwdKeoYpkncmm+RXfYaifzK/39FA//OhyP2ItQGoKvhE Lyaff0jWwlGE/9jJbQ8b3O8NhPtnMEkI6IY/0iS+sNgslPj6vAetMC3L5YDmaLs83LtN 83qQ== 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=cTXXiC6jWDKM0GJVJPUbDdh24dHvDonCxr7UzClIlyo=; b=H6XicLfy3JP7H4N2aHOgmqrRVnSoqNiOroymi7pGMmg9wPu75TfhSDC0RwBb3jKRxu n29ZfwE3xvmmMYBZkbkaTQ6hZeWXGWFytjjZkcAJuKk/PtJeEs+jvAliI4NsIf5AZ5Xe OKIGeCZhU8vbjNZwSPyJEjhnAkfIxIMmc9Iev+wsilU1qglhq+w15ve5sEPQhDlQ1d8g kjwOeovvn9LPbxf4IuRNEmfFFQPccG7NEKDrSy82Y6VE8ijhlI1z/zd2QeufidnIv66o aLO2jJD2BZeNOKyuZcUwmtSDIaHS4vtFz2FF9gBSWuPxt5MlUQwWsnzLJTQSnUckPiPm NBKg== 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 u12si10171714eds.392.2021.09.07.01.54.56; Tue, 07 Sep 2021 01:55:19 -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 S244521AbhIGIyG (ORCPT + 99 others); Tue, 7 Sep 2021 04:54:06 -0400 Received: from mx21.baidu.com ([220.181.3.85]:36360 "EHLO baidu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S244491AbhIGIyG (ORCPT ); Tue, 7 Sep 2021 04:54:06 -0400 Received: from BC-Mail-Ex16.internal.baidu.com (unknown [172.31.51.56]) by Forcepoint Email with ESMTPS id C2893B6FE7BD9E7CFBBB; Tue, 7 Sep 2021 16:52:56 +0800 (CST) Received: from BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) by BC-Mail-Ex16.internal.baidu.com (172.31.51.56) 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:52:56 +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:56 +0800 From: Cai Huoqing To: CC: Michael Turquette , Stephen Boyd , Maxime Ripard , Chen-Yu Tsai , Jernej Skrabec , , , , Subject: [PATCH] clk: sunxi-ng: ccu-sun9i-a80-usb: Make use of the helper function devm_platform_ioremap_resource() Date: Tue, 7 Sep 2021 16:52:49 +0800 Message-ID: <20210907085250.4917-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-sun9i-a80-usb.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/clk/sunxi-ng/ccu-sun9i-a80-usb.c b/drivers/clk/sunxi-ng/ccu-sun9i-a80-usb.c index 4b4a507d04ed..adac159a5f63 100644 --- a/drivers/clk/sunxi-ng/ccu-sun9i-a80-usb.c +++ b/drivers/clk/sunxi-ng/ccu-sun9i-a80-usb.c @@ -92,13 +92,11 @@ static const struct sunxi_ccu_desc sun9i_a80_usb_clk_desc = { static int sun9i_a80_usb_clk_probe(struct platform_device *pdev) { - struct resource *res; struct clk *bus_clk; void __iomem *reg; 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