kernel: bump 5.4 to 5.4.80
[openwrt/openwrt.git] / target / linux / rtl838x / files-5.4 / arch / mips / rtl838x / serial.c
index 8a85933baf7952dd7463014a04051f7c41c2877a..9d22f6f9e1ef654fd80d7b743fbe7883ed6363ab 100644 (file)
@@ -24,7 +24,6 @@
 #include <asm/mach-rtl838x/mach-rtl838x.h>
 
 extern char arcs_cmdline[];
-extern struct rtl838x_soc_info soc_info;
 
 int __init rtl838x_serial_init(void)
 {
@@ -54,7 +53,7 @@ int __init rtl838x_serial_init(void)
        s = strstr(arcs_cmdline, "console=ttyS0,");
        if (s) {
                s += 14;
-               baud = kstrtoul(s, 10, &baud);
+               err = kstrtoul(s, 10, &baud);
                if (err)
                        baud = 0;
                while (isdigit(*s))