diff options
author | Yangtao Li <tiny.windzz@gmail.com> | 2019-12-14 17:54:39 +0000 |
---|---|---|
committer | Krzysztof Kozlowski <krzk@kernel.org> | 2019-12-15 12:55:36 +0100 |
commit | 81a0efb7af7a586b2f0dd73ac1913b1691cdff12 (patch) | |
tree | 8cdd79518d7374ea80b2b495126519e58568caab /drivers/soc/samsung | |
parent | e42617b825f8073569da76dc4510bfa019b1c35a (diff) |
soc: samsung: exynos-pmu: Convert to devm_platform_ioremap_resource
Use devm_platform_ioremap_resource() to simplify code.
Signed-off-by: Yangtao Li <tiny.windzz@gmail.com>
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Diffstat (limited to 'drivers/soc/samsung')
-rw-r--r-- | drivers/soc/samsung/exynos-pmu.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/soc/samsung/exynos-pmu.c b/drivers/soc/samsung/exynos-pmu.c index d34ca201b8b7..7da2701c871a 100644 --- a/drivers/soc/samsung/exynos-pmu.c +++ b/drivers/soc/samsung/exynos-pmu.c @@ -110,10 +110,8 @@ EXPORT_SYMBOL_GPL(exynos_get_pmu_regmap); static int exynos_pmu_probe(struct platform_device *pdev) { struct device *dev = &pdev->dev; - struct resource *res; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - pmu_base_addr = devm_ioremap_resource(dev, res); + pmu_base_addr = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(pmu_base_addr)) return PTR_ERR(pmu_base_addr); |