From: Thorsten Blum Date: Wed, 15 Jan 2025 09:01:35 +0000 (+0100) Subject: MIPS: Loongson64: env: Use str_on_off() helper in prom_lefi_init_env() X-Git-Tag: v6.14-rc1~73^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a3c4afc0e081f8b6b5a744afb3f69c88288d218e;p=thirdparty%2Fkernel%2Flinux.git MIPS: Loongson64: env: Use str_on_off() helper in prom_lefi_init_env() Remove hard-coded strings by using the str_on_off() helper function. Signed-off-by: Thorsten Blum Signed-off-by: Thomas Bogendoerfer --- diff --git a/arch/mips/loongson64/env.c b/arch/mips/loongson64/env.c index 09ff052698614..be8d2ad10750f 100644 --- a/arch/mips/loongson64/env.c +++ b/arch/mips/loongson64/env.c @@ -17,6 +17,7 @@ #include #include #include +#include #include #include #include @@ -162,7 +163,7 @@ void __init prom_lefi_init_env(void) dma_default_coherent = !eirq_source->dma_noncoherent; } - pr_info("Firmware: Coherent DMA: %s\n", dma_default_coherent ? "on" : "off"); + pr_info("Firmware: Coherent DMA: %s\n", str_on_off(dma_default_coherent)); loongson_sysconf.restart_addr = boot_p->reset_system.ResetWarm; loongson_sysconf.poweroff_addr = boot_p->reset_system.Shutdown;