Skip to content

Commit 4b9f0bd

Browse files
tobluxandreas-gaisler
authored andcommitted
sparc/irq: Use str_enabled_disabled() helper function
Remove hard-coded strings by using the str_enabled_disabled() helper function. Signed-off-by: Thorsten Blum <[email protected]> Reviewed-by: Andreas Larsson <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Andreas Larsson <[email protected]>
1 parent f4ab186 commit 4b9f0bd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

arch/sparc/kernel/irq_64.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
#include <linux/seq_file.h>
2323
#include <linux/ftrace.h>
2424
#include <linux/irq.h>
25+
#include <linux/string_choices.h>
2526

2627
#include <asm/ptrace.h>
2728
#include <asm/processor.h>
@@ -170,7 +171,7 @@ static void __init irq_init_hv(void)
170171

171172
pr_info("SUN4V: Using IRQ API major %d, cookie only virqs %s\n",
172173
hv_irq_version,
173-
sun4v_cookie_only_virqs() ? "enabled" : "disabled");
174+
str_enabled_disabled(sun4v_cookie_only_virqs()));
174175
}
175176

176177
/* This function is for the timer interrupt.*/

0 commit comments

Comments
 (0)