From: Geert Uytterhoeven Date: Sun, 12 Jan 2020 17:17:05 +0000 (+0100) Subject: m68k: amiga: Fix Denise detection on OCS X-Git-Tag: v5.10-rc1~220^2~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3b0950af21e02a8c902ce1143ac5563fadcdfb3e;p=thirdparty%2Flinux.git m68k: amiga: Fix Denise detection on OCS The "default" statement for detecting an original Denise chip seems to be misplaced, causing original Denise chips not being detected. Fix this by moving it from the outer to the inner "switch" statement. Fortunately no code relies on this, but the detected version is printed during boot, and available through /proc/hardware. Signed-off-by: Geert Uytterhoeven Link: https://lore.kernel.org/r/20200112171705.22600-1-geert@linux-m68k.org --- diff --git a/arch/m68k/amiga/config.c b/arch/m68k/amiga/config.c index 8f23b2fab64c7..9c1afa143d059 100644 --- a/arch/m68k/amiga/config.c +++ b/arch/m68k/amiga/config.c @@ -278,11 +278,11 @@ static void __init amiga_identify(void) case 0x08: AMIGAHW_SET(LISA); break; + default: + AMIGAHW_SET(DENISE); + break; } break; - default: - AMIGAHW_SET(DENISE); - break; } switch ((amiga_custom.vposr>>8) & 0x7f) { case 0x00: