diff options
| -rw-r--r-- | arch/arm/mach-imx/gpc.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/arch/arm/mach-imx/gpc.c b/arch/arm/mach-imx/gpc.c index 4d60005e9277..bbf015056221 100644 --- a/arch/arm/mach-imx/gpc.c +++ b/arch/arm/mach-imx/gpc.c | |||
| @@ -280,9 +280,15 @@ void __init imx_gpc_check_dt(void) | |||
| 280 | struct device_node *np; | 280 | struct device_node *np; |
| 281 | 281 | ||
| 282 | np = of_find_compatible_node(NULL, NULL, "fsl,imx6q-gpc"); | 282 | np = of_find_compatible_node(NULL, NULL, "fsl,imx6q-gpc"); |
| 283 | if (WARN_ON(!np || | 283 | if (WARN_ON(!np)) |
| 284 | !of_find_property(np, "interrupt-controller", NULL))) | 284 | return; |
| 285 | pr_warn("Outdated DT detected, system is about to crash!!!\n"); | 285 | |
| 286 | if (WARN_ON(!of_find_property(np, "interrupt-controller", NULL))) { | ||
| 287 | pr_warn("Outdated DT detected, suspend/resume will NOT work\n"); | ||
| 288 | |||
| 289 | /* map GPC, so that at least CPUidle and WARs keep working */ | ||
| 290 | gpc_base = of_iomap(np, 0); | ||
| 291 | } | ||
| 286 | } | 292 | } |
| 287 | 293 | ||
| 288 | #ifdef CONFIG_PM_GENERIC_DOMAINS | 294 | #ifdef CONFIG_PM_GENERIC_DOMAINS |
