diff options
author | Geert Uytterhoeven <geert@linux-m68k.org> | 2020-01-12 20:17:05 +0300 |
---|---|---|
committer | Geert Uytterhoeven <geert@linux-m68k.org> | 2020-08-26 14:26:52 +0300 |
commit | 3b0950af21e02a8c902ce1143ac5563fadcdfb3e (patch) | |
tree | c4d7ac6e6b5c4a877e3fdec1b72e9f6bad9089f7 /arch/m68k | |
parent | 9123e3a74ec7b934a4a099e98af6a61c2f80bbf5 (diff) | |
download | linux-3b0950af21e02a8c902ce1143ac5563fadcdfb3e.tar.xz |
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 <geert@linux-m68k.org>
Link: https://lore.kernel.org/r/20200112171705.22600-1-geert@linux-m68k.org
Diffstat (limited to 'arch/m68k')
-rw-r--r-- | arch/m68k/amiga/config.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/m68k/amiga/config.c b/arch/m68k/amiga/config.c index 8f23b2fab64c..9c1afa143d05 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: |