[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20191209195749.868-4-tiny.windzz@gmail.com>
Date: Mon, 9 Dec 2019 19:57:36 +0000
From: Yangtao Li <tiny.windzz@...il.com>
To: afaerber@...e.de, manivannan.sadhasivam@...aro.org,
mturquette@...libre.com, sboyd@...nel.org,
Eugeniy.Paltsev@...opsys.com, shawnguo@...nel.org,
s.hauer@...gutronix.de, kernel@...gutronix.de, festevam@...il.com,
linux-imx@....com, agross@...nel.org, s.nawrocki@...sung.com,
tomasz.figa@...il.com, cw00.choi@...sung.com, kgene@...nel.org,
krzk@...nel.org, palmer@...ive.com, paul.walmsley@...ive.com,
dinguyen@...nel.org, mripard@...nel.org, wens@...e.org,
emilio@...pez.com.ar, pdeschrijver@...dia.com, pgaikwad@...dia.com,
thierry.reding@...il.com, jonathanh@...dia.com,
matthias.bgg@...il.com, rfontana@...hat.com,
gregkh@...uxfoundation.org, t-kristo@...com, john@...ozen.org,
tglx@...utronix.de, allison@...utok.net,
kstewart@...uxfoundation.org, swinslow@...il.com,
aisheng.dong@....com, robh@...nel.org, daniel.baluta@....com,
weiyongjun1@...wei.com, wangyan.wang@...iatek.com,
chunhui.dai@...iatek.com, miquel.raynal@...tlin.com,
heiko@...ech.de, jcmvbkbc@...il.com, nsekhar@...com,
geert+renesas@...der.be
Cc: linux-arm-kernel@...ts.infradead.org, linux-clk@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-arm-msm@...r.kernel.org,
linux-samsung-soc@...r.kernel.org, linux-riscv@...ts.infradead.org,
linux-tegra@...r.kernel.org, linux-mediatek@...ts.infradead.org,
Yangtao Li <tiny.windzz@...il.com>
Subject: [PATCH 04/17] clk: mediatek: convert to devm_platform_ioremap_resource
Use devm_platform_ioremap_resource() to simplify code.
Signed-off-by: Yangtao Li <tiny.windzz@...il.com>
---
drivers/clk/mediatek/clk-mt2701.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/drivers/clk/mediatek/clk-mt2701.c b/drivers/clk/mediatek/clk-mt2701.c
index 695be0f77427..a6aea6646118 100644
--- a/drivers/clk/mediatek/clk-mt2701.c
+++ b/drivers/clk/mediatek/clk-mt2701.c
@@ -668,9 +668,8 @@ static int mtk_topckgen_init(struct platform_device *pdev)
struct clk_onecell_data *clk_data;
void __iomem *base;
struct device_node *node = pdev->dev.of_node;
- struct resource *res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
- base = devm_ioremap_resource(&pdev->dev, res);
+ base = devm_platform_ioremap_resource(pdev, 0);
if (IS_ERR(base))
return PTR_ERR(base);
@@ -889,9 +888,8 @@ static int mtk_pericfg_init(struct platform_device *pdev)
void __iomem *base;
int r;
struct device_node *node = pdev->dev.of_node;
- struct resource *res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
- base = devm_ioremap_resource(&pdev->dev, res);
+ base = devm_platform_ioremap_resource(pdev, 0);
if (IS_ERR(base))
return PTR_ERR(base);
--
2.17.1
Powered by blists - more mailing lists