From patchwork Thu Nov 17 06:03:34 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: ye.xingchen@zte.com.cn X-Patchwork-Id: 21450 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp236249wrr; Wed, 16 Nov 2022 22:11:15 -0800 (PST) X-Google-Smtp-Source: AA0mqf7/JttqjpOxF455htFs7cUF6F6vuyKvaioL/DM1dgp242uKJnadKKBamNvhdS7wBv60Pq0I X-Received: by 2002:a05:6402:2993:b0:462:845:ba98 with SMTP id eq19-20020a056402299300b004620845ba98mr898887edb.12.1668665475178; Wed, 16 Nov 2022 22:11:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668665475; cv=none; d=google.com; s=arc-20160816; b=gia3LgrgFrf64URR1BF4tGmUQcCexWwhxvn3qfCdUmafj4g6+WXXjeexbX1WMHb6gH 6WDj3wRbWxKJHC9om0yyksehv1hJ86k9Ri9+xOKpL/idpx30tbIOMY/db09JDcspXkZl O0oWc8tgx5TkM6kNmNTkkNI2/ULMIhZjoXX0ZTchCgofoVqcT+LVTBrXsC70WFAZ05gc QgAyEfU+J5OfSBJWsTChq6KDO1KKQ1tSDDlC4l/gylfn/ioArv3YFY/m+e/2N8pkTaDd qbB2VwXCZrqgBWqdcgRpafI+kDyh7vSq1hT10Ymcyins4f+P+xYOy57NVfJMY4SkLkWG nb0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:cc:to:from:mime-version:message-id:date; bh=dWEV3raYglk5TfnvGrIB62AikRnETDGzMXEhCrjcRFM=; b=ANjg5abc4feBjxN0unIfFMci+8yhUoEJ4v5YWdgMQzBGqluNcjQj7EP3OSolplBQN+ gh5O1o1JbtX4P+1OzOB9u8CSkdsk/WYurs5IfZkd6JY9LqGAg8341iwL+PmGTydr4m8+ lkt5uoFQBBwIkicSheOq6s1cQ0utTGNJjz8nBugh15SMWPMU9YkBT3QmlxuUAO2gN1q3 T8X/ZeOiJ5j3bUQhhTPQyFK8TBFgOk7HtrUrPHCDsT2no2F16wHkMzupOyRBxeB7aOXC UaLPkVpeoDNAOx88gw4VZMopKZsWYA6gPQJKJY1wA3fg9IsZWrKBInbUMvbNy9FuIiMK YYQQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=zte.com.cn Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s25-20020a05640217d900b00461b2c460c8si153722edy.531.2022.11.16.22.10.52; Wed, 16 Nov 2022 22:11:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=zte.com.cn Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239322AbiKQGET (ORCPT + 99 others); Thu, 17 Nov 2022 01:04:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53176 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239321AbiKQGEO (ORCPT ); Thu, 17 Nov 2022 01:04:14 -0500 Received: from mxhk.zte.com.cn (mxhk.zte.com.cn [63.216.63.40]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 19B9729831; Wed, 16 Nov 2022 22:04:07 -0800 (PST) Received: from mse-fl2.zte.com.cn (unknown [10.5.228.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mxhk.zte.com.cn (FangMail) with ESMTPS id 4NCTrQ0NVfz8R041; Thu, 17 Nov 2022 14:04:06 +0800 (CST) Received: from xaxapp01.zte.com.cn ([10.88.40.50]) by mse-fl2.zte.com.cn with SMTP id 2AH63WUf079891; Thu, 17 Nov 2022 14:03:32 +0800 (+08) (envelope-from ye.xingchen@zte.com.cn) Received: from mapi (xaxapp01[null]) by mapi (Zmail) with MAPI id mid31; Thu, 17 Nov 2022 14:03:34 +0800 (CST) Date: Thu, 17 Nov 2022 14:03:34 +0800 (CST) X-Zmail-TransId: 2af96375ceb6ffffffffc4c4508b X-Mailer: Zmail v1.0 Message-ID: <202211171403340042731@zte.com.cn> Mime-Version: 1.0 From: To: Cc: , , , , , , Subject: =?utf-8?q?=5BPATCH=5D_clk=3A_qcom=3A_hfpll=3A_use?= =?utf-8?q?_?= =?utf-8?q?_devm=5Fplatform=5Fget=5Fand=5Fioremap=5Fresource=28=29?= X-MAIL: mse-fl2.zte.com.cn 2AH63WUf079891 X-Fangmail-Gw-Spam-Type: 0 X-FangMail-Miltered: at cgslv5.04-192.168.250.137.novalocal with ID 6375CED6.001 by FangMail milter! X-FangMail-Envelope: 1668665046/4NCTrQ0NVfz8R041/6375CED6.001/10.5.228.133/[10.5.228.133]/mse-fl2.zte.com.cn/ X-Fangmail-Anti-Spam-Filtered: true X-Fangmail-MID-QID: 6375CED6.001/4NCTrQ0NVfz8R041 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749722569597827967?= X-GMAIL-MSGID: =?utf-8?q?1749722569597827967?= From: Minghao Chi Convert platform_get_resource(), devm_ioremap_resource() to a single call to devm_platform_get_and_ioremap_resource(), as this is exactly what this function does. Signed-off-by: Minghao Chi Signed-off-by: ye xingchen --- drivers/clk/qcom/hfpll.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/clk/qcom/hfpll.c b/drivers/clk/qcom/hfpll.c index 5ff7f5a60620..f4d78003d189 100644 --- a/drivers/clk/qcom/hfpll.c +++ b/drivers/clk/qcom/hfpll.c @@ -47,7 +47,6 @@ static const struct regmap_config hfpll_regmap_config = { static int qcom_hfpll_probe(struct platform_device *pdev) { - struct resource *res; struct device *dev = &pdev->dev; void __iomem *base; struct regmap *regmap; @@ -70,8 +69,7 @@ static int qcom_hfpll_probe(struct platform_device *pdev) if (!h) return -ENOMEM; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - base = devm_ioremap_resource(dev, res); + base = devm_platform_get_and_ioremap_resource(pdev, 0, NULL); if (IS_ERR(base)) return PTR_ERR(base);