Commit d473de0f authored by Geert Uytterhoeven's avatar Geert Uytterhoeven

m68k: amiga: Clean up Amiga hardware configuration

Move the generic Amiga hardware configuration section out of the
switch statement, which allows to replace all ugly jumps by break
statements.
Signed-off-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
Link: https://lore.kernel.org/r/20200826125124.23863-1-geert@linux-m68k.org
parent 62148d98
...@@ -214,7 +214,7 @@ static void __init amiga_identify(void) ...@@ -214,7 +214,7 @@ static void __init amiga_identify(void)
switch (amiga_model) { switch (amiga_model) {
case AMI_UNKNOWN: case AMI_UNKNOWN:
goto Generic; break;
case AMI_600: case AMI_600:
case AMI_1200: case AMI_1200:
...@@ -227,7 +227,7 @@ static void __init amiga_identify(void) ...@@ -227,7 +227,7 @@ static void __init amiga_identify(void)
case AMI_2000: case AMI_2000:
case AMI_2500: case AMI_2500:
AMIGAHW_SET(A2000_CLK); /* Is this correct for all models? */ AMIGAHW_SET(A2000_CLK); /* Is this correct for all models? */
goto Generic; break;
case AMI_3000: case AMI_3000:
case AMI_3000T: case AMI_3000T:
...@@ -238,7 +238,7 @@ static void __init amiga_identify(void) ...@@ -238,7 +238,7 @@ static void __init amiga_identify(void)
AMIGAHW_SET(A3000_SCSI); AMIGAHW_SET(A3000_SCSI);
AMIGAHW_SET(A3000_CLK); AMIGAHW_SET(A3000_CLK);
AMIGAHW_SET(ZORRO3); AMIGAHW_SET(ZORRO3);
goto Generic; break;
case AMI_4000T: case AMI_4000T:
AMIGAHW_SET(A4000_SCSI); AMIGAHW_SET(A4000_SCSI);
...@@ -247,15 +247,21 @@ static void __init amiga_identify(void) ...@@ -247,15 +247,21 @@ static void __init amiga_identify(void)
AMIGAHW_SET(A4000_IDE); AMIGAHW_SET(A4000_IDE);
AMIGAHW_SET(A3000_CLK); AMIGAHW_SET(A3000_CLK);
AMIGAHW_SET(ZORRO3); AMIGAHW_SET(ZORRO3);
goto Generic; break;
case AMI_CDTV: case AMI_CDTV:
case AMI_CD32: case AMI_CD32:
AMIGAHW_SET(CD_ROM); AMIGAHW_SET(CD_ROM);
AMIGAHW_SET(A2000_CLK); /* Is this correct? */ AMIGAHW_SET(A2000_CLK); /* Is this correct? */
goto Generic; break;
case AMI_DRACO:
panic("No support for Draco yet");
default:
panic("Unknown Amiga Model");
}
Generic:
AMIGAHW_SET(AMI_VIDEO); AMIGAHW_SET(AMI_VIDEO);
AMIGAHW_SET(AMI_BLITTER); AMIGAHW_SET(AMI_BLITTER);
AMIGAHW_SET(AMI_AUDIO); AMIGAHW_SET(AMI_AUDIO);
...@@ -309,14 +315,6 @@ static void __init amiga_identify(void) ...@@ -309,14 +315,6 @@ static void __init amiga_identify(void)
break; break;
} }
AMIGAHW_SET(ZORRO); AMIGAHW_SET(ZORRO);
break;
case AMI_DRACO:
panic("No support for Draco yet");
default:
panic("Unknown Amiga Model");
}
#define AMIGAHW_ANNOUNCE(name, str) \ #define AMIGAHW_ANNOUNCE(name, str) \
if (AMIGAHW_PRESENT(name)) \ if (AMIGAHW_PRESENT(name)) \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment