diff options
Diffstat (limited to 'drivers/net/hamradio/mkiss.c')
-rw-r--r-- | drivers/net/hamradio/mkiss.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/net/hamradio/mkiss.c b/drivers/net/hamradio/mkiss.c index ed5b37d43334..032c0db4c410 100644 --- a/drivers/net/hamradio/mkiss.c +++ b/drivers/net/hamradio/mkiss.c | |||
@@ -976,9 +976,9 @@ static struct tty_ldisc_ops ax_ldisc = { | |||
976 | .write_wakeup = mkiss_write_wakeup | 976 | .write_wakeup = mkiss_write_wakeup |
977 | }; | 977 | }; |
978 | 978 | ||
979 | static char banner[] __initdata = KERN_INFO \ | 979 | static const char banner[] __initdata = KERN_INFO \ |
980 | "mkiss: AX.25 Multikiss, Hans Albas PE1AYX\n"; | 980 | "mkiss: AX.25 Multikiss, Hans Albas PE1AYX\n"; |
981 | static char msg_regfail[] __initdata = KERN_ERR \ | 981 | static const char msg_regfail[] __initdata = KERN_ERR \ |
982 | "mkiss: can't register line discipline (err = %d)\n"; | 982 | "mkiss: can't register line discipline (err = %d)\n"; |
983 | 983 | ||
984 | static int __init mkiss_init_driver(void) | 984 | static int __init mkiss_init_driver(void) |
@@ -987,8 +987,9 @@ static int __init mkiss_init_driver(void) | |||
987 | 987 | ||
988 | printk(banner); | 988 | printk(banner); |
989 | 989 | ||
990 | if ((status = tty_register_ldisc(N_AX25, &ax_ldisc)) != 0) | 990 | status = tty_register_ldisc(N_AX25, &ax_ldisc); |
991 | printk(msg_regfail); | 991 | if (status != 0) |
992 | printk(msg_regfail, status); | ||
992 | 993 | ||
993 | return status; | 994 | return status; |
994 | } | 995 | } |