Initialize system type string after device tree init. Signed-off-by: Aaro Koskinen <aaro.koskinen@xxxxxx> --- arch/mips/cavium-octeon/setup.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/arch/mips/cavium-octeon/setup.c b/arch/mips/cavium-octeon/setup.c index 5be2072..d9fb610 100644 --- a/arch/mips/cavium-octeon/setup.c +++ b/arch/mips/cavium-octeon/setup.c @@ -466,7 +466,7 @@ static void octeon_halt(void) static char __read_mostly octeon_system_type[80]; -static int __init init_octeon_system_type(void) +static void __init init_octeon_system_type(void) { char const *board_type; @@ -476,10 +476,7 @@ static int __init init_octeon_system_type(void) snprintf(octeon_system_type, sizeof(octeon_system_type), "%s (%s)", board_type, octeon_model_get_string(read_c0_prid())); - - return 0; } -early_initcall(init_octeon_system_type); /** * Return a string representing the system type @@ -1122,6 +1119,7 @@ void __init device_tree_init(void) pr_info("Using internal Device Tree.\n"); } unflatten_and_copy_device_tree(); + init_octeon_system_type(); } static int __initdata disable_octeon_edac_p; -- 2.4.0