hc
2023-12-11 6778948f9de86c3cfaf36725a7c87dcff9ba247f
kernel/drivers/tty/serial/amba-pl010.c
....@@ -15,10 +15,6 @@
1515 * and hooked into this driver.
1616 */
1717
18
-#if defined(CONFIG_SERIAL_AMBA_PL010_CONSOLE) && defined(CONFIG_MAGIC_SYSRQ)
19
-#define SUPPORT_SYSRQ
20
-#endif
21
-
2218 #include <linux/module.h>
2319 #include <linux/ioport.h>
2420 #include <linux/init.h>
....@@ -725,6 +721,7 @@
725721 uap->port.iotype = UPIO_MEM;
726722 uap->port.irq = dev->irq[0];
727723 uap->port.fifosize = 16;
724
+ uap->port.has_sysrq = IS_ENABLED(CONFIG_SERIAL_AMBA_PL010_CONSOLE);
728725 uap->port.ops = &amba_pl010_pops;
729726 uap->port.flags = UPF_BOOT_AUTOCONF;
730727 uap->port.line = i;
....@@ -754,7 +751,7 @@
754751 return ret;
755752 }
756753
757
-static int pl010_remove(struct amba_device *dev)
754
+static void pl010_remove(struct amba_device *dev)
758755 {
759756 struct uart_amba_port *uap = amba_get_drvdata(dev);
760757 int i;
....@@ -770,8 +767,6 @@
770767
771768 if (!busy)
772769 uart_unregister_driver(&amba_reg);
773
-
774
- return 0;
775770 }
776771
777772 #ifdef CONFIG_PM_SLEEP