]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
tty: moxa: drop version dump to logs
authorJiri Slaby (SUSE) <jirislaby@kernel.org>
Mon, 17 Mar 2025 07:00:33 +0000 (08:00 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 20 Mar 2025 15:00:51 +0000 (08:00 -0700)
The arbitrary MOXA_VERSION is dumped to the logs when the driver is
loaded. Avoid this as a driver should be silent unless something breaks.

Signed-off-by: Jiri Slaby (SUSE) <jirislaby@kernel.org>
Link: https://lore.kernel.org/r/20250317070046.24386-19-jirislaby@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/moxa.c

index ebaada8db92944c0fc8f44259cd3e2048a0b14cc..2b75ca12cbc973ba268daf820b4af59977c9642f 100644 (file)
 #define        MX_PARMARK      0xA0
 #define        MX_PARSPACE     0x20
 
-#define MOXA_VERSION           "6.0k"
-
 #define MOXA_FW_HDRLEN         32
 
 #define MOXAMAJOR              172
@@ -1327,9 +1325,6 @@ static int __init moxa_init(void)
        struct moxa_board_conf *brd = moxa_boards;
        unsigned int i;
 
-       printk(KERN_INFO "MOXA Intellio family driver version %s\n",
-                       MOXA_VERSION);
-
        tty_port_init(&moxa_service_port);
 
        moxaDriver = tty_alloc_driver(MAX_PORTS + 1,