.. | .. |
---|
3 | 3 | // Copyright (c) 2011-2014 Samsung Electronics Co., Ltd. |
---|
4 | 4 | // http://www.samsung.com/ |
---|
5 | 5 | // |
---|
6 | | -// EXYNOS - CPU PMU(Power Management Unit) support |
---|
| 6 | +// Exynos - CPU PMU(Power Management Unit) support |
---|
7 | 7 | |
---|
8 | 8 | #include <linux/of.h> |
---|
9 | 9 | #include <linux/of_address.h> |
---|
.. | .. |
---|
110 | 110 | static int exynos_pmu_probe(struct platform_device *pdev) |
---|
111 | 111 | { |
---|
112 | 112 | struct device *dev = &pdev->dev; |
---|
113 | | - struct resource *res; |
---|
114 | 113 | |
---|
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); |
---|
117 | 115 | if (IS_ERR(pmu_base_addr)) |
---|
118 | 116 | return PTR_ERR(pmu_base_addr); |
---|
119 | 117 | |
---|