m68k/mac: Disentangle VIA and OSS initialization
authorFinn Thain <fthain@telegraphics.com.au>
Fri, 27 Oct 2017 02:45:24 +0000 (22:45 -0400)
committerGeert Uytterhoeven <geert@linux-m68k.org>
Thu, 9 Nov 2017 22:02:56 +0000 (23:02 +0100)
commit7a0bb4427024f426668f3ed63542328135282422
tree337f8080889a9d6f8022ec1ad2a5e2d63d03c524
parent0e37a23ebdadc0e34176b816770da6f4ac64043e
m68k/mac: Disentangle VIA and OSS initialization

macintosh_config->via_type is meaningless on Mac IIfx (i.e. the only
model with OSS chip), so skip the via_type switch statement.

Call oss_init() before via_init() because it is more important and
because that is the right place to initialize the oss_present flag.

On this model, bringing forward oss_init() and delaying via_init()
is no problem because those functions are independent.

The only requirement here is that oss_register_interrupts() happens
after via_init(). That is, mac_init_IRQ() happens after config_mac().

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
arch/m68k/mac/oss.c
arch/m68k/mac/via.c