Commit 79d2a09d authored by Yangtao Li's avatar Yangtao Li Committed by Sebastian Reichel

power: reset: brcm-kona: Convert to devm_platform_ioremap_resource()

Use devm_platform_ioremap_resource() to simplify code.
Signed-off-by: default avatarYangtao Li <frank.li@vivo.com>
Acked-by: default avatarFlorian Fainelli <florian.fainelli@broadcom.com>
Signed-off-by: default avatarSebastian Reichel <sebastian.reichel@collabora.com>
parent 5d002da7
...@@ -38,9 +38,7 @@ static struct notifier_block kona_reset_nb = { ...@@ -38,9 +38,7 @@ static struct notifier_block kona_reset_nb = {
static int kona_reset_probe(struct platform_device *pdev) static int kona_reset_probe(struct platform_device *pdev)
{ {
struct resource *res = platform_get_resource(pdev, IORESOURCE_MEM, 0); kona_reset_base = devm_platform_ioremap_resource(pdev, 0);
kona_reset_base = devm_ioremap_resource(&pdev->dev, res);
if (IS_ERR(kona_reset_base)) if (IS_ERR(kona_reset_base))
return PTR_ERR(kona_reset_base); return PTR_ERR(kona_reset_base);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment