tty/serial: Migrate bcm63xx_uart to use has_sysrq
[linux-2.6-microblaze.git] / drivers / tty / serial / bcm63xx_uart.c
index b7adc61..5674da2 100644 (file)
  * my board.
  */
 
-#if defined(CONFIG_SERIAL_BCM63XX_CONSOLE) && defined(CONFIG_MAGIC_SYSRQ)
-#define SUPPORT_SYSRQ
-#endif
-
 #include <linux/kernel.h>
 #include <linux/platform_device.h>
 #include <linux/init.h>
@@ -858,6 +854,7 @@ static int bcm_uart_probe(struct platform_device *pdev)
        port->fifosize = 16;
        port->uartclk = clk_get_rate(clk) / 2;
        port->line = pdev->id;
+       port->has_sysrq = IS_ENABLED(CONFIG_SERIAL_BCM63XX_CONSOLE);
        clk_put(clk);
 
        ret = uart_add_one_port(&bcm_uart_driver, port);