Skip to content

Commit 2a29592

Browse files
morimotoRussell King (Oracle)
authored andcommitted
ARM: 9454/1: kernel: bios32: use string choices helper
We can use string choices helper, let's use it. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
1 parent c085ddf commit 2a29592

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

arch/arm/kernel/bios32.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#include <linux/kernel.h>
1111
#include <linux/pci.h>
1212
#include <linux/slab.h>
13+
#include <linux/string_choices.h>
1314
#include <linux/init.h>
1415
#include <linux/io.h>
1516

@@ -337,8 +338,8 @@ void pcibios_fixup_bus(struct pci_bus *bus)
337338
/*
338339
* Report what we did for this bus
339340
*/
340-
pr_info("PCI: bus%d: Fast back to back transfers %sabled\n",
341-
bus->number, (features & PCI_COMMAND_FAST_BACK) ? "en" : "dis");
341+
pr_info("PCI: bus%d: Fast back to back transfers %s\n",
342+
bus->number, str_enabled_disabled(features & PCI_COMMAND_FAST_BACK));
342343
}
343344
EXPORT_SYMBOL(pcibios_fixup_bus);
344345

0 commit comments

Comments
 (0)