Skip to content

Commit

Permalink
MIPS: Loongson64: env: Use str_on_off() helper in prom_lefi_init_env()
Browse files Browse the repository at this point in the history
Remove hard-coded strings by using the str_on_off() helper function.

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
  • Loading branch information
Thorsten Blum authored and Thomas Bogendoerfer committed Jan 20, 2025
1 parent 04e4ec9 commit a3c4afc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arch/mips/loongson64/env.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#include <linux/dma-map-ops.h>
#include <linux/export.h>
#include <linux/pci_ids.h>
#include <linux/string_choices.h>
#include <asm/bootinfo.h>
#include <loongson.h>
#include <boot_param.h>
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit a3c4afc

Please sign in to comment.