From a64138ec15f4361c456563167bae12ed95a68d6b Mon Sep 17 00:00:00 2001 From: Finn Thain Date: Sat, 27 Jan 2018 18:51:40 -0500 Subject: macintosh/via-pmu68k: Initialize PMU driver with setup_arch and arch_initcall The PMU watchdog will power down the system if the kernel is slow to start up, e.g. due to unpacking a large initrd. The powerpc version of this driver (via-pmu.c) has a solution for the same problem. It uses this call sequence: setup_arch find_via_pmu init_pmu ... arch_initcall via_pmu_start Bring via-pmu68k.c into line with via-pmu.c to fix this issue. Cc: Geert Uytterhoeven Tested-by: Stan Johnson Signed-off-by: Finn Thain Signed-off-by: Geert Uytterhoeven --- arch/m68k/mac/config.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'arch/m68k/mac/config.c') diff --git a/arch/m68k/mac/config.c b/arch/m68k/mac/config.c index 7890a8425710..36086cceb537 100644 --- a/arch/m68k/mac/config.c +++ b/arch/m68k/mac/config.c @@ -26,6 +26,7 @@ #include #include #include +#include #include #include @@ -890,6 +891,9 @@ static void __init mac_identify(void) #ifdef CONFIG_ADB_CUDA find_via_cuda(); #endif +#ifdef CONFIG_ADB_PMU68K + find_via_pmu(); +#endif } static void __init mac_report_hardware(void) -- cgit v1.2.3