Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp3542099pxb; Tue, 7 Sep 2021 01:50:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx+mY093sZf+NIXK2u0BEI2KmcBHu51AkTrxt+7st4HMllP0u1JKNvFMxnVoA2k2pERniC1 X-Received: by 2002:a17:907:1c01:: with SMTP id nc1mr17549958ejc.504.1631004650414; Tue, 07 Sep 2021 01:50:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631004650; cv=none; d=google.com; s=arc-20160816; b=KsbHgL8IYBLgxufTsGVtK+H5oP+MaNBpLbAjfvHfyGcE1N9poWCuBRB39kqBKfYjl2 CyfZdzI/qRcf86mhf4XaBZ2ZleXBztv6Ok5UMTWia6RzKmGpuvSInkgJLaTpWz/5Sotg msrnNiy1dyxMo9RKSSy2sRe/2ztFKKP+pIGRKNLO8Cb5nED76fYOsdwMKZqQpUcmOVI3 Q82hbwhtSSvmtW0wzbEc9668WtF2wSKGtNH/nLg/N1XpGqQE6mG3H42eMVRUHrrvW9QW Jz0bPnUxeqIdcnewlZ/kHW4dLz9JLNnNJ2M721GbEEbCvdyrqLh5/LGjugN5bd1NLPxf 2tKg== 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=d3E2NrvnzGN5790PVmAHe3weXij71hEsSXFFY+kCrIA=; b=XoIz1du5r7Ye392kSLsJYkdzoHgvBz7UQFAvKmQoWK3l2teRRTPBnbgKnSF9UPdHX1 0qgVoxumKqsvpEV4o9CLqCTceCRJdexF6ji/CRcOUGkJ5SJCSQBrfuqj9Qhs8Y3t1N5l i3/ZlY2uOhXz98eXtOcoU8iMVJwNg4on6Vh50FRROXdvbVXUTfHsERgQKTTIanO3Zpeu cK4WrKDP/Cw1u0yIk612nMi/+tfjgh2XN7APoOR4X1KLAOVutDkX5BMHp2qrhOxy/ZDG 2Vb2RkqCJKaZhqKOExW0HwH3xiONi6loX9Qvi9T6yUI4fBn/trhbYHgk4SGQQb2xyMPy EcbQ== 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 k16si10478804edo.475.2021.09.07.01.50.27; Tue, 07 Sep 2021 01:50:50 -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 S243909AbhIGItu (ORCPT + 99 others); Tue, 7 Sep 2021 04:49:50 -0400 Received: from mx20.baidu.com ([111.202.115.85]:60098 "EHLO baidu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S244059AbhIGIto (ORCPT ); Tue, 7 Sep 2021 04:49:44 -0400 Received: from BC-Mail-Ex32.internal.baidu.com (unknown [172.31.51.26]) by Forcepoint Email with ESMTPS id 59243EC4F18E8BA30C59; Tue, 7 Sep 2021 16:48:35 +0800 (CST) Received: from BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) by BC-Mail-Ex32.internal.baidu.com (172.31.51.26) 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:48:34 +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:48:34 +0800 From: Cai Huoqing To: CC: Michael Turquette , Stephen Boyd , , Subject: [PATCH] clk: mvebu: armada-37xx-periph: Make use of the helper function devm_platform_ioremap_resource() Date: Tue, 7 Sep 2021 16:48:28 +0800 Message-ID: <20210907084829.3897-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/mvebu/armada-37xx-periph.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/clk/mvebu/armada-37xx-periph.c b/drivers/clk/mvebu/armada-37xx-periph.c index 32ac6b6b7530..081718f5fe05 100644 --- a/drivers/clk/mvebu/armada-37xx-periph.c +++ b/drivers/clk/mvebu/armada-37xx-periph.c @@ -732,7 +732,6 @@ static int armada_3700_periph_clock_probe(struct platform_device *pdev) const struct clk_periph_data *data; struct device *dev = &pdev->dev; int num_periph = 0, i, ret; - struct resource *res; data = of_device_get_match_data(dev); if (!data) @@ -753,8 +752,7 @@ static int armada_3700_periph_clock_probe(struct platform_device *pdev) return -ENOMEM; driver_data->hw_data->num = num_periph; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - driver_data->reg = devm_ioremap_resource(dev, res); + driver_data->reg = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(driver_data->reg)) return PTR_ERR(driver_data->reg); -- 2.25.1