aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/soc/samsung/exynos-pmu.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/soc/samsung/exynos-pmu.c b/drivers/soc/samsung/exynos-pmu.c
index 5c269bf23210..1f914e63dcc6 100644
--- a/drivers/soc/samsung/exynos-pmu.c
+++ b/drivers/soc/samsung/exynos-pmu.c
@@ -11,6 +11,7 @@
11 11
12#include <linux/of.h> 12#include <linux/of.h>
13#include <linux/of_address.h> 13#include <linux/of_address.h>
14#include <linux/of_device.h>
14#include <linux/mfd/syscon.h> 15#include <linux/mfd/syscon.h>
15#include <linux/platform_device.h> 16#include <linux/platform_device.h>
16#include <linux/delay.h> 17#include <linux/delay.h>
@@ -105,7 +106,6 @@ EXPORT_SYMBOL_GPL(exynos_get_pmu_regmap);
105 106
106static int exynos_pmu_probe(struct platform_device *pdev) 107static int exynos_pmu_probe(struct platform_device *pdev)
107{ 108{
108 const struct of_device_id *match;
109 struct device *dev = &pdev->dev; 109 struct device *dev = &pdev->dev;
110 struct resource *res; 110 struct resource *res;
111 111
@@ -122,10 +122,7 @@ static int exynos_pmu_probe(struct platform_device *pdev)
122 return -ENOMEM; 122 return -ENOMEM;
123 } 123 }
124 pmu_context->dev = dev; 124 pmu_context->dev = dev;
125 125 pmu_context->pmu_data = of_device_get_match_data(dev);
126 match = of_match_node(exynos_pmu_of_device_ids, dev->of_node);
127
128 pmu_context->pmu_data = match->data;
129 126
130 if (pmu_context->pmu_data->pmu_init) 127 if (pmu_context->pmu_data->pmu_init)
131 pmu_context->pmu_data->pmu_init(); 128 pmu_context->pmu_data->pmu_init();