Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp3544287pxb; Tue, 7 Sep 2021 01:55:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyc/tPm8/JAV5UcsHrl3pLFpgS2klRk0HMBdhdZLh/uMmVpj0q50lfcGY2WEnLsLToXhdDs X-Received: by 2002:a17:906:3486:: with SMTP id g6mr18048000ejb.71.1631004911202; Tue, 07 Sep 2021 01:55:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631004911; cv=none; d=google.com; s=arc-20160816; b=Xox/BbdPHx3CYZositANKoJNGtoEjXHJ52oit0jZrmftYqcf4N7AIxf87rJZ3v1TJw GO3YleEvXIWfILr2SDLA9hmiPUDWYiQjdtBgoA5WEYKMLOJ9+AZyzUJjBW+FfdcoOmEl ohgbdkMZivLm/W3dbLxXL76UrxDPj+wZJtGR/UJQ6hV9fSBRnN9RD/jvoHL8eszWKBvW SI903OI9pHlw8rb0b/Sy8E447K+w62J7NODcKRvRHRjo4Uh4go3JP6UpiCBZ+woL7Jo1 7kFyLj+XwyhGXEf7ezq6EcneFI2So09riYTjdDHd6Yc9Bs/otuMBa0gCBFaxeNmxYAsQ dbxA== 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=QafqinGinCuJ+JzLYSjHkb8QAYZQmCnX+kDUQ63vP6Q=; b=vp6pdojuwDg3/OJeDIdX9bUMQktTiTqI5NfEQrMsnHZa0VsJr0uSiMsC9kilJ9Xzzr C8VqTB60av9uJ2BHCjfxroowlh2hpUEjVAz/Bu3YCHL81yML57jWEwgdopUEJYfMTUe+ 85GeAayTVPznPRNJCrYs8zM8VQyom6jjCPLgY5JyZNy7TPyvHxOPH6zUxQ1b2fbwYz05 4e/PowppacGkDUyx63fUthOeFDzD0l0o2rEzZEAhFzfZAtJQR72wwDWa5h9KOl8vY/gr 8pAYCZO+OFCw2TG/SGRJyMyuMf1NyvCmflsJhSUiEUxIGVfop0I1MYXiYpY9n8BmNQKU 3w8w== 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 kl18si10641138ejc.160.2021.09.07.01.54.48; Tue, 07 Sep 2021 01:55:11 -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 S244456AbhIGIx5 (ORCPT + 99 others); Tue, 7 Sep 2021 04:53:57 -0400 Received: from mx21.baidu.com ([220.181.3.85]:36228 "EHLO baidu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S244341AbhIGIx4 (ORCPT ); Tue, 7 Sep 2021 04:53:56 -0400 Received: from BC-Mail-Ex15.internal.baidu.com (unknown [172.31.51.55]) by Forcepoint Email with ESMTPS id 5EEAF1CA0BB0ECBBD79C; Tue, 7 Sep 2021 16:52:49 +0800 (CST) Received: from BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) by BC-Mail-Ex15.internal.baidu.com (172.31.51.55) 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:49 +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:48 +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-de: Make use of the helper function devm_platform_ioremap_resource() Date: Tue, 7 Sep 2021 16:52:42 +0800 Message-ID: <20210907085243.4866-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-de.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/clk/sunxi-ng/ccu-sun9i-a80-de.c b/drivers/clk/sunxi-ng/ccu-sun9i-a80-de.c index 6616e8114f62..94552199d54d 100644 --- a/drivers/clk/sunxi-ng/ccu-sun9i-a80-de.c +++ b/drivers/clk/sunxi-ng/ccu-sun9i-a80-de.c @@ -203,14 +203,12 @@ static const struct sunxi_ccu_desc sun9i_a80_de_clk_desc = { static int sun9i_a80_de_clk_probe(struct platform_device *pdev) { - struct resource *res; struct clk *bus_clk; struct reset_control *rstc; 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