hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/soc/samsung/exynos-pmu.c
....@@ -3,7 +3,7 @@
33 // Copyright (c) 2011-2014 Samsung Electronics Co., Ltd.
44 // http://www.samsung.com/
55 //
6
-// EXYNOS - CPU PMU(Power Management Unit) support
6
+// Exynos - CPU PMU(Power Management Unit) support
77
88 #include <linux/of.h>
99 #include <linux/of_address.h>
....@@ -110,10 +110,8 @@
110110 static int exynos_pmu_probe(struct platform_device *pdev)
111111 {
112112 struct device *dev = &pdev->dev;
113
- struct resource *res;
114113
115
- res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
116
- pmu_base_addr = devm_ioremap_resource(dev, res);
114
+ pmu_base_addr = devm_platform_ioremap_resource(pdev, 0);
117115 if (IS_ERR(pmu_base_addr))
118116 return PTR_ERR(pmu_base_addr);
119117