[PATCH] EISA: Use str_plural() in eisa_probe()

From: Thorsten Blum

Date: Fri Jul 24 2026 - 17:35:51 EST


Replace the manual ternary "s" pluralization with str_plural() to
simplify the code.

Signed-off-by: Thorsten Blum <thorsten.blum@xxxxxxxxx>
---
drivers/eisa/eisa-bus.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/eisa/eisa-bus.c b/drivers/eisa/eisa-bus.c
index 79ab44fe26aa..73c4ba3dc0bc 100644
--- a/drivers/eisa/eisa-bus.c
+++ b/drivers/eisa/eisa-bus.c
@@ -12,6 +12,7 @@
#include <linux/moduleparam.h>
#include <linux/init.h>
#include <linux/slab.h>
+#include <linux/string_choices.h>
#include <linux/ioport.h>
#include <asm/io.h>

@@ -393,7 +394,7 @@ static int __init eisa_probe(struct eisa_root_device *root)
}
}

- dev_info(root->dev, "EISA: Detected %d card%s\n", c, c == 1 ? "" : "s");
+ dev_info(root->dev, "EISA: Detected %d card%s\n", c, str_plural(c));
return 0;
}