From nobody Fri Sep 20 20:39:19 2024 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id CAF79C77B6E for ; Thu, 13 Apr 2023 09:02:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229622AbjDMJC5 (ORCPT ); Thu, 13 Apr 2023 05:02:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54010 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230103AbjDMJCe (ORCPT ); Thu, 13 Apr 2023 05:02:34 -0400 Received: from mailgw.kylinos.cn (mailgw.kylinos.cn [124.126.103.232]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EB44183F8; Thu, 13 Apr 2023 02:01:41 -0700 (PDT) X-UUID: 18142d70a7ba4fa4979d7736f75fe837-20230413 X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.22,REQID:ee4c8d52-2964-462a-b687-6d8ce734d4ec,IP:5,U RL:0,TC:0,Content:-5,EDM:0,RT:0,SF:-9,FILE:0,BULK:0,RULE:Release_Ham,ACTIO N:release,TS:-9 X-CID-INFO: VERSION:1.1.22,REQID:ee4c8d52-2964-462a-b687-6d8ce734d4ec,IP:5,URL :0,TC:0,Content:-5,EDM:0,RT:0,SF:-9,FILE:0,BULK:0,RULE:Release_Ham,ACTION: release,TS:-9 X-CID-META: VersionHash:120426c,CLOUDID:cf28d6ea-db6f-41fe-8b83-13fe7ed1ef52,B ulkID:230413170137RYK53AXK,BulkQuantity:0,Recheck:0,SF:19|42|38|24|17|102, TC:nil,Content:0,EDM:-3,IP:-2,URL:0,File:nil,Bulk:nil,QS:nil,BEC:nil,COL:0 ,OSI:0,OSA:0,AV:0 X-CID-BVR: 0,NGT X-CID-BAS: 0,NGT,0,_ X-UUID: 18142d70a7ba4fa4979d7736f75fe837-20230413 X-User: gehao@kylinos.cn Received: from localhost.localdomain [(116.128.244.169)] by mailgw (envelope-from ) (Generic MTA) with ESMTP id 513328953; Thu, 13 Apr 2023 17:01:35 +0800 From: Hao Ge To: mturquette@baylibre.com, sboyd@kernel.org, matthias.bgg@gmail.com Cc: gehao@kylinos.cn, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH] mediatek/clk-mt8173-apmixedsys: convert to devm_platform_ioremap_resource Date: Thu, 13 Apr 2023 17:01:28 +0800 Message-Id: <20230413090128.60119-1-gehao@kylinos.cn> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Use devm_platform_ioremap_resource to take the place of of_iomap for avoid that we don't called iounmap when return some error or remove device. Signed-off-by: Hao Ge --- drivers/clk/mediatek/clk-mt8173-apmixedsys.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/mediatek/clk-mt8173-apmixedsys.c b/drivers/clk/med= iatek/clk-mt8173-apmixedsys.c index a56c5845d07a..fe386bf8225d 100644 --- a/drivers/clk/mediatek/clk-mt8173-apmixedsys.c +++ b/drivers/clk/mediatek/clk-mt8173-apmixedsys.c @@ -90,7 +90,7 @@ static int clk_mt8173_apmixed_probe(struct platform_devic= e *pdev) struct clk_hw *hw; int r; =20 - base =3D of_iomap(node, 0); + base =3D devm_platform_ioremap_resource(pdev, 0); if (!base) return PTR_ERR(base); =20 --=20 2.25.1 No virus found Checked by Hillstone Network AntiVirus