2
0
mirror of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2025-09-04 20:19:47 +08:00
linux/arch/m68k/mac
Finn Thain 52ae3f5da7 m68k: mac: Fix macintosh_config for Mac II
When booted on my Mac II, the kernel prints this:

    Detected Macintosh model: 6
    Apple Macintosh Unknown

The catch-all entry ("Unknown") is mac_data_table[0] which is only needed
in the unlikely event that the bootinfo model ID can't be matched.
When model ID is 6, the search should begin and end at mac_data_table[1].
Fix the off-by-one error that causes this problem.

Cc: Joshua Thompson <funaho@jurai.org>
Fixes: 1da177e4c3 ("Linux-2.6.12-rc2")
Signed-off-by: Finn Thain <fthain@linux-m68k.org>
Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org>
Link: https://lore.kernel.org/d0f30a551064ca4810b1c48d5a90954be80634a9.1745453246.git.fthain@linux-m68k.org
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
2025-04-28 22:16:52 +02:00
..
baboon.c m68k: mac: Add and use "mac.h" 2023-10-06 10:03:03 +02:00
config.c m68k: mac: Fix macintosh_config for Mac II 2025-04-28 22:16:52 +02:00
iop.c m68k: mac: Add and use "mac.h" 2023-10-06 10:03:03 +02:00
mac_penguin.S License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
mac.h m68k: mac: Add and use "mac.h" 2023-10-06 10:03:03 +02:00
macboing.c treewide: Switch/rename to timer_delete[_sync]() 2025-04-05 10:30:12 +02:00
macints.c m68k: Add common forward declaration for show_registers() 2022-07-12 10:48:21 +02:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
misc.c m68k: mac: Fix reboot hang on Mac IIci 2024-05-08 17:43:22 +02:00
oss.c m68k: mac: Add and use "mac.h" 2023-10-06 10:03:03 +02:00
psc.c m68k: mac: Add and use "mac.h" 2023-10-06 10:03:03 +02:00
via.c m68k: mac: Add and use "mac.h" 2023-10-06 10:03:03 +02:00