From: Markus Stockhausen Date: Wed, 18 Feb 2026 18:21:42 +0000 (+0100) Subject: realtek: cleanup mach setup X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8b5f49ed0444ab72bad6251e11a92d4087e2d150;p=thirdparty%2Fopenwrt.git realtek: cleanup mach setup Remove unneeded includes from setup.c and adapt comments. Signed-off-by: Markus Stockhausen Link: https://github.com/openwrt/openwrt/pull/22084 Signed-off-by: Robert Marko --- diff --git a/target/linux/realtek/files-6.12/arch/mips/rtl-otto/setup.c b/target/linux/realtek/files-6.12/arch/mips/rtl-otto/setup.c index ee0b488cfd5..b02d2530ab2 100644 --- a/target/linux/realtek/files-6.12/arch/mips/rtl-otto/setup.c +++ b/target/linux/realtek/files-6.12/arch/mips/rtl-otto/setup.c @@ -1,33 +1,16 @@ // SPDX-License-Identifier: GPL-2.0-only /* - * Setup for the Realtek RTL838X SoC: - * Memory, Timer and Serial - * * Copyright (C) 2020 B. Koblitz * based on the original BSP by * Copyright (C) 2006-2012 Tony Wu (tonywu@realtek.com) - * */ -#include -#include -#include -#include -#include -#include -#include -#include - -#include -#include #include -#include #include -#include - -#include "mach-rtl-otto.h" - -extern struct rtl83xx_soc_info soc_info; +#include +#include +#include +#include void __init plat_mem_setup(void) { @@ -39,10 +22,7 @@ void __init plat_mem_setup(void) if (!dtb) panic("no dtb found"); - /* - * Load the devicetree. This causes the chosen node to be - * parsed resulting in our memory appearing - */ + /* Load the devicetree to let the memory appear. */ __dt_setup_arch(dtb); } @@ -66,11 +46,10 @@ static void plat_time_init_fallback(void) void __init plat_time_init(void) { -/* - * Initialization routine resembles generic MIPS plat_time_init() with - * lazy error handling. The final fallback is only needed until we have - * converted all device trees to new clock syntax. - */ + /* + * Initialization routine resembles generic MIPS plat_time_init() with lazy error + * handling. The final fallback is needed until all device trees use new clock syntax. + */ struct device_node *np; struct clk *clk;