Skip to content

Commit a3c4afc

Browse files
tobluxtsbogend
authored andcommitted
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 <[email protected]> Signed-off-by: Thomas Bogendoerfer <[email protected]>
1 parent 04e4ec9 commit a3c4afc

File tree

1 file changed

+2
-1
lines changed
  • arch/mips/loongson64

1 file changed

+2
-1
lines changed

arch/mips/loongson64/env.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
#include <linux/dma-map-ops.h>
1818
#include <linux/export.h>
1919
#include <linux/pci_ids.h>
20+
#include <linux/string_choices.h>
2021
#include <asm/bootinfo.h>
2122
#include <loongson.h>
2223
#include <boot_param.h>
@@ -162,7 +163,7 @@ void __init prom_lefi_init_env(void)
162163
dma_default_coherent = !eirq_source->dma_noncoherent;
163164
}
164165

165-
pr_info("Firmware: Coherent DMA: %s\n", dma_default_coherent ? "on" : "off");
166+
pr_info("Firmware: Coherent DMA: %s\n", str_on_off(dma_default_coherent));
166167

167168
loongson_sysconf.restart_addr = boot_p->reset_system.ResetWarm;
168169
loongson_sysconf.poweroff_addr = boot_p->reset_system.Shutdown;

0 commit comments

Comments
 (0)