diff options
author | Yangtao Li <frank.li@vivo.com> | 2023-07-04 15:02:05 +0300 |
---|---|---|
committer | Philipp Zabel <p.zabel@pengutronix.de> | 2023-11-28 19:19:38 +0300 |
commit | 1750ec40593399dd0e8b62a4d23e1b9e55068afd (patch) | |
tree | 2c47e1bd5afe9bfa252a68f206a49804a8219e66 /drivers/reset | |
parent | b85ea95d086471afb4ad062012a4d73cd328fa86 (diff) | |
download | linux-1750ec40593399dd0e8b62a4d23e1b9e55068afd.tar.xz |
reset: brcmstb: Use devm_platform_get_and_ioremap_resource()
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: Yangtao Li <frank.li@vivo.com>
Acked-by: Florian Fainelli <florian.fainelli@broadcom.com>
Link: https://lore.kernel.org/r/20230704120211.38122-1-frank.li@vivo.com
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Diffstat (limited to 'drivers/reset')
-rw-r--r-- | drivers/reset/reset-brcmstb.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/reset/reset-brcmstb.c b/drivers/reset/reset-brcmstb.c index 42c9d5241c53..810fe76452d6 100644 --- a/drivers/reset/reset-brcmstb.c +++ b/drivers/reset/reset-brcmstb.c @@ -90,8 +90,7 @@ static int brcmstb_reset_probe(struct platform_device *pdev) if (!priv) return -ENOMEM; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - priv->base = devm_ioremap_resource(kdev, res); + priv->base = devm_platform_get_and_ioremap_resource(pdev, 0, &res); if (IS_ERR(priv->base)) return PTR_ERR(priv->base); |