]> git.baikalelectronics.ru Git - kernel.git/commit
m68k: m68328: remove duplicate code
authorArnd Bergmann <arnd@arndb.de>
Fri, 30 Oct 2020 14:26:24 +0000 (15:26 +0100)
committerGreg Ungerer <gerg@linux-m68k.org>
Sun, 6 Dec 2020 23:37:58 +0000 (09:37 +1000)
commite23a8a04d4608a676b979a061b16884fcfe7f686
treec77b510fff317ef77913d4fad7def80654b9abaf
parent2be83236ba96d4f9afc6d5865dc39e26a963043c
m68k: m68328: remove duplicate code

Building a kernel with multiple dragonball based boards
enabled needlessly causes a link failure because of duplicate
config_BSP() functions between the CPU versions.

Avoid that merging the three almost identical files into one,
and hiding the CPU configuration behind the board config.
The pr_info() lines are consolidated in one place.

It is still not possible to run a kernel configured for
more than one board, but at least configurations that can
be selected can also be built now.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Ungerer <gerg@linux-m68k.org>
arch/m68k/68000/Makefile
arch/m68k/68000/m68328.c
arch/m68k/68000/m68EZ328.c [deleted file]
arch/m68k/68000/m68VZ328.c [deleted file]
arch/m68k/Kconfig.cpu
arch/m68k/Kconfig.machine
arch/m68k/kernel/setup_no.c