Skip to content

Commit 3b0950a

Browse files
committed
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
1 parent 9123e3a commit 3b0950a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

arch/m68k/amiga/config.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -278,11 +278,11 @@ static void __init amiga_identify(void)
278278
case 0x08:
279279
AMIGAHW_SET(LISA);
280280
break;
281+
default:
282+
AMIGAHW_SET(DENISE);
283+
break;
281284
}
282285
break;
283-
default:
284-
AMIGAHW_SET(DENISE);
285-
break;
286286
}
287287
switch ((amiga_custom.vposr>>8) & 0x7f) {
288288
case 0x00:

0 commit comments

Comments
 (0)