Loading Documentation/devicetree/bindings/tty/serial/efm32-uart.txt 0 → 100644 +14 −0 Original line number Diff line number Diff line * Energymicro efm32 UART Required properties: - compatible : Should be "efm32,uart" - reg : Address and length of the register set - interrupts : Should contain uart interrupt Example: uart@0x4000c400 { compatible = "efm32,uart"; reg = <0x4000c400 0x400>; interrupts = <15>; }; drivers/isdn/capi/capi.c +3 −6 Original line number Diff line number Diff line Loading @@ -1015,14 +1015,11 @@ capinc_tty_install(struct tty_driver *driver, struct tty_struct *tty) { int idx = tty->index; struct capiminor *mp = capiminor_get(idx); int ret = tty_init_termios(tty); int ret = tty_standard_install(driver, tty); if (ret == 0) { tty_driver_kref_get(driver); tty->count++; if (ret == 0) tty->driver_data = mp; driver->ttys[idx] = tty; } else else capiminor_put(mp); return ret; } Loading drivers/misc/pti.c +1 −5 Original line number Diff line number Diff line Loading @@ -481,13 +481,9 @@ static int pti_tty_install(struct tty_driver *driver, struct tty_struct *tty) { int idx = tty->index; struct pti_tty *pti_tty_data; int ret = tty_init_termios(tty); int ret = tty_standard_install(driver, tty); if (ret == 0) { tty_driver_kref_get(driver); tty->count++; driver->ttys[idx] = tty; pti_tty_data = kmalloc(sizeof(struct pti_tty), GFP_KERNEL); if (pti_tty_data == NULL) return -ENOMEM; Loading drivers/mmc/card/sdio_uart.c +3 −6 Original line number Diff line number Diff line Loading @@ -750,15 +750,12 @@ static int sdio_uart_install(struct tty_driver *driver, struct tty_struct *tty) { int idx = tty->index; struct sdio_uart_port *port = sdio_uart_port_get(idx); int ret = tty_init_termios(tty); int ret = tty_standard_install(driver, tty); if (ret == 0) { tty_driver_kref_get(driver); tty->count++; if (ret == 0) /* This is the ref sdio_uart_port get provided */ tty->driver_data = port; driver->ttys[idx] = tty; } else else sdio_uart_port_put(port); return ret; } Loading drivers/tty/hvc/hvc_beat.c +1 −1 Original line number Diff line number Diff line Loading @@ -113,7 +113,7 @@ static int __init hvc_beat_init(void) if (!firmware_has_feature(FW_FEATURE_BEAT)) return -ENODEV; hp = hvc_alloc(0, NO_IRQ, &hvc_beat_get_put_ops, 16); hp = hvc_alloc(0, 0, &hvc_beat_get_put_ops, 16); if (IS_ERR(hp)) return PTR_ERR(hp); hvc_beat_dev = hp; Loading Loading
Documentation/devicetree/bindings/tty/serial/efm32-uart.txt 0 → 100644 +14 −0 Original line number Diff line number Diff line * Energymicro efm32 UART Required properties: - compatible : Should be "efm32,uart" - reg : Address and length of the register set - interrupts : Should contain uart interrupt Example: uart@0x4000c400 { compatible = "efm32,uart"; reg = <0x4000c400 0x400>; interrupts = <15>; };
drivers/isdn/capi/capi.c +3 −6 Original line number Diff line number Diff line Loading @@ -1015,14 +1015,11 @@ capinc_tty_install(struct tty_driver *driver, struct tty_struct *tty) { int idx = tty->index; struct capiminor *mp = capiminor_get(idx); int ret = tty_init_termios(tty); int ret = tty_standard_install(driver, tty); if (ret == 0) { tty_driver_kref_get(driver); tty->count++; if (ret == 0) tty->driver_data = mp; driver->ttys[idx] = tty; } else else capiminor_put(mp); return ret; } Loading
drivers/misc/pti.c +1 −5 Original line number Diff line number Diff line Loading @@ -481,13 +481,9 @@ static int pti_tty_install(struct tty_driver *driver, struct tty_struct *tty) { int idx = tty->index; struct pti_tty *pti_tty_data; int ret = tty_init_termios(tty); int ret = tty_standard_install(driver, tty); if (ret == 0) { tty_driver_kref_get(driver); tty->count++; driver->ttys[idx] = tty; pti_tty_data = kmalloc(sizeof(struct pti_tty), GFP_KERNEL); if (pti_tty_data == NULL) return -ENOMEM; Loading
drivers/mmc/card/sdio_uart.c +3 −6 Original line number Diff line number Diff line Loading @@ -750,15 +750,12 @@ static int sdio_uart_install(struct tty_driver *driver, struct tty_struct *tty) { int idx = tty->index; struct sdio_uart_port *port = sdio_uart_port_get(idx); int ret = tty_init_termios(tty); int ret = tty_standard_install(driver, tty); if (ret == 0) { tty_driver_kref_get(driver); tty->count++; if (ret == 0) /* This is the ref sdio_uart_port get provided */ tty->driver_data = port; driver->ttys[idx] = tty; } else else sdio_uart_port_put(port); return ret; } Loading
drivers/tty/hvc/hvc_beat.c +1 −1 Original line number Diff line number Diff line Loading @@ -113,7 +113,7 @@ static int __init hvc_beat_init(void) if (!firmware_has_feature(FW_FEATURE_BEAT)) return -ENODEV; hp = hvc_alloc(0, NO_IRQ, &hvc_beat_get_put_ops, 16); hp = hvc_alloc(0, 0, &hvc_beat_get_put_ops, 16); if (IS_ERR(hp)) return PTR_ERR(hp); hvc_beat_dev = hp; Loading