Skip to content

Commit d5ec550

Browse files
geertutorvalds
authored andcommitted
m68k: Correctly handle multi-ISA at runtime
m68k: Correctly handle multi-ISA at runtime in multi-platform kernels Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 52de114 commit d5ec550

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎arch/m68k/kernel/setup.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -346,17 +346,17 @@ void __init setup_arch(char **cmdline_p)
346346

347347
/* set ISA defs early as possible */
348348
#if defined(CONFIG_ISA) && defined(MULTI_ISA)
349-
#if defined(CONFIG_Q40)
350349
if (MACH_IS_Q40) {
351350
isa_type = ISA_TYPE_Q40;
352351
isa_sex = 0;
353352
}
354-
#elif defined(CONFIG_GG2)
353+
#ifdef CONFIG_GG2
355354
if (MACH_IS_AMIGA && AMIGAHW_PRESENT(GG2_ISA)) {
356355
isa_type = ISA_TYPE_GG2;
357356
isa_sex = 0;
358357
}
359-
#elif defined(CONFIG_AMIGA_PCMCIA)
358+
#endif
359+
#ifdef CONFIG_AMIGA_PCMCIA
360360
if (MACH_IS_AMIGA && AMIGAHW_PRESENT(PCMCIA)) {
361361
isa_type = ISA_TYPE_AG;
362362
isa_sex = 1;

0 commit comments

Comments
 (0)