Re: [PATCH] MIPS: of: Introduce helper function to get DTB
From: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Date: 2021-02-04 14:14:00
Also in:
lkml
From: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Date: 2021-02-04 14:14:00
Also in:
lkml
On Wed, Jan 27, 2021 at 02:24:30PM +0100, Thomas Bogendoerfer wrote:
Selection of the DTB to be used was burried in more or less readable code in head.S. Move this code into a inline helper function and use it. Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de> --- arch/mips/ath79/setup.c | 13 +++++------ arch/mips/bmips/setup.c | 7 +++--- arch/mips/generic/init.c | 5 ++--- arch/mips/include/asm/bootinfo.h | 22 ++++++++++++++++++- arch/mips/include/asm/octeon/octeon.h | 1 - arch/mips/kernel/head.S | 31 --------------------------- arch/mips/kernel/setup.c | 4 ---- arch/mips/lantiq/prom.c | 7 ++---- arch/mips/pic32/pic32mzda/init.c | 15 +------------ arch/mips/ralink/of.c | 11 +++------- 10 files changed, 39 insertions(+), 77 deletions(-)
applied to mips-next. Thomas, -- Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]