From: Paul Cercueil Date: Sun, 6 Sep 2020 19:29:26 +0000 (+0200) Subject: MIPS: generic: Allow boards to set system type X-Git-Tag: v5.10-rc1~103^2~47 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8405419942f2f012dc23b5c8817eded2d591b033;p=thirdparty%2Fkernel%2Flinux.git MIPS: generic: Allow boards to set system type Check for the system_type variable in the get_system_type() function. If non-NULL, return it as the system type. Signed-off-by: Paul Cercueil Signed-off-by: Thomas Bogendoerfer --- diff --git a/arch/mips/generic/proc.c b/arch/mips/generic/proc.c index 4c992809cc3f9..cce2fde219a35 100644 --- a/arch/mips/generic/proc.c +++ b/arch/mips/generic/proc.c @@ -8,11 +8,16 @@ #include +char *system_type; + const char *get_system_type(void) { const char *str; int err; + if (system_type) + return system_type; + err = of_property_read_string(of_root, "model", &str); if (!err) return str;