diff options
author | Yangtao Li <frank.li@vivo.com> | 2023-07-04 14:02:06 +0200 |
---|---|---|
committer | Philipp Zabel <p.zabel@pengutronix.de> | 2023-11-28 17:19:38 +0100 |
commit | 66a1f3929a522482b735e68a43d243b0545c17b6 (patch) | |
tree | 74d36ac02e020ff7f3ca1ca70fb1e884b8dae4aa /drivers/reset | |
parent | reset: brcmstb: Use devm_platform_get_and_ioremap_resource() (diff) | |
download | linux-66a1f3929a522482b735e68a43d243b0545c17b6.tar.xz linux-66a1f3929a522482b735e68a43d243b0545c17b6.zip |
reset: meson-audio-arb: Convert to devm_platform_ioremap_resource()
Use devm_platform_ioremap_resource() to simplify code.
Signed-off-by: Yangtao Li <frank.li@vivo.com>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://lore.kernel.org/r/20230704120211.38122-2-frank.li@vivo.com
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Diffstat (limited to 'drivers/reset')
-rw-r--r-- | drivers/reset/reset-meson-audio-arb.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/reset/reset-meson-audio-arb.c b/drivers/reset/reset-meson-audio-arb.c index 7e46dbc04998..7891d52fa899 100644 --- a/drivers/reset/reset-meson-audio-arb.c +++ b/drivers/reset/reset-meson-audio-arb.c @@ -139,7 +139,6 @@ static int meson_audio_arb_probe(struct platform_device *pdev) struct device *dev = &pdev->dev; const struct meson_audio_arb_match_data *data; struct meson_audio_arb_data *arb; - struct resource *res; int ret; data = of_device_get_match_data(dev); @@ -155,8 +154,7 @@ static int meson_audio_arb_probe(struct platform_device *pdev) if (IS_ERR(arb->clk)) return dev_err_probe(dev, PTR_ERR(arb->clk), "failed to get clock\n"); - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - arb->regs = devm_ioremap_resource(dev, res); + arb->regs = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(arb->regs)) return PTR_ERR(arb->regs); |