macintosh/via-pmu68k: Initialize PMU driver with setup_arch and arch_initcall
commita64138ec15f4361c456563167bae12ed95a68d6b
authorFinn Thain <fthain@telegraphics.com.au>
Sat, 27 Jan 2018 23:51:40 +0000 (27 18:51 -0500)
committerGeert Uytterhoeven <geert@linux-m68k.org>
Mon, 19 Mar 2018 09:22:59 +0000 (19 10:22 +0100)
treeabb1bc384ff0859af962044415ec0b0c8079c5df
parenta1eb1cdf4e55e1ecdb4a474070450d8a648686bf
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 <geert@linux-m68k.org>
Tested-by: Stan Johnson <userm57@yahoo.com>
Signed-off-by: Finn Thain <fthain@telegraphics.com.au>
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
arch/m68k/mac/config.c
drivers/macintosh/via-pmu68k.c