Message ID | 202211111640089246472@zte.com.cn |
---|---|
State | New |
Headers | show |
Series | mfd: exynos-lpass: use devm_platform_get_and_ioremap_resource() | expand |
diff --git a/drivers/mfd/exynos-lpass.c b/drivers/mfd/exynos-lpass.c index 166cd21088cd..ac99e742a355 100644 --- a/drivers/mfd/exynos-lpass.c +++ b/drivers/mfd/exynos-lpass.c @@ -109,14 +109,12 @@ static int exynos_lpass_probe(struct platform_device *pdev) struct device *dev = &pdev->dev; struct exynos_lpass *lpass; void __iomem *base_top; - struct resource *res; lpass = devm_kzalloc(dev, sizeof(*lpass), GFP_KERNEL); if (!lpass) return -ENOMEM; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - base_top = devm_ioremap_resource(dev, res); + base_top = devm_platform_get_and_ioremap_resource(pdev, 0, NULL); if (IS_ERR(base_top)) return PTR_ERR(base_top);