Commit fa59aa70 authored by Marek Szyprowski's avatar Marek Szyprowski Committed by Krzysztof Kozlowski

soc: samsung: pmu: Add dummy support for Exynos5433 SoC

Add compatible for Exynos5433 SoC, so the driver will bind and let other
drivers to use PMU regmap.
Signed-off-by: default avatarMarek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: default avatarKrzysztof Kozlowski <krzk@kernel.org>
parent 1da6de33
...@@ -44,7 +44,7 @@ void exynos_sys_powerdown_conf(enum sys_powerdown mode) ...@@ -44,7 +44,7 @@ void exynos_sys_powerdown_conf(enum sys_powerdown mode)
unsigned int i; unsigned int i;
const struct exynos_pmu_data *pmu_data; const struct exynos_pmu_data *pmu_data;
if (!pmu_context) if (!pmu_context || !pmu_context->pmu_data)
return; return;
pmu_data = pmu_context->pmu_data; pmu_data = pmu_context->pmu_data;
...@@ -90,6 +90,8 @@ static const struct of_device_id exynos_pmu_of_device_ids[] = { ...@@ -90,6 +90,8 @@ static const struct of_device_id exynos_pmu_of_device_ids[] = {
}, { }, {
.compatible = "samsung,exynos5420-pmu", .compatible = "samsung,exynos5420-pmu",
.data = &exynos5420_pmu_data, .data = &exynos5420_pmu_data,
}, {
.compatible = "samsung,exynos5433-pmu",
}, },
{ /*sentinel*/ }, { /*sentinel*/ },
}; };
...@@ -122,7 +124,7 @@ static int exynos_pmu_probe(struct platform_device *pdev) ...@@ -122,7 +124,7 @@ static int exynos_pmu_probe(struct platform_device *pdev)
pmu_context->dev = dev; pmu_context->dev = dev;
pmu_context->pmu_data = of_device_get_match_data(dev); pmu_context->pmu_data = of_device_get_match_data(dev);
if (pmu_context->pmu_data->pmu_init) if (pmu_context->pmu_data && pmu_context->pmu_data->pmu_init)
pmu_context->pmu_data->pmu_init(); pmu_context->pmu_data->pmu_init();
platform_set_drvdata(pdev, pmu_context); platform_set_drvdata(pdev, pmu_context);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment