diff options
Diffstat (limited to 'drivers/mmc')
| -rw-r--r-- | drivers/mmc/card/sdio_uart.c | 24 | ||||
| -rw-r--r-- | drivers/mmc/host/omap.c | 1 | ||||
| -rw-r--r-- | drivers/mmc/host/omap_hsmmc.c | 1 |
3 files changed, 12 insertions, 14 deletions
diff --git a/drivers/mmc/card/sdio_uart.c b/drivers/mmc/card/sdio_uart.c index 5a2cbfac66d2..d2339ea37815 100644 --- a/drivers/mmc/card/sdio_uart.c +++ b/drivers/mmc/card/sdio_uart.c | |||
| @@ -518,7 +518,7 @@ static void sdio_uart_check_modem_status(struct sdio_uart_port *port) | |||
| 518 | if (status & UART_MSR_DCTS) { | 518 | if (status & UART_MSR_DCTS) { |
| 519 | port->icount.cts++; | 519 | port->icount.cts++; |
| 520 | tty = tty_port_tty_get(&port->port); | 520 | tty = tty_port_tty_get(&port->port); |
| 521 | if (tty && (tty->termios->c_cflag & CRTSCTS)) { | 521 | if (tty && (tty->termios.c_cflag & CRTSCTS)) { |
| 522 | int cts = (status & UART_MSR_CTS); | 522 | int cts = (status & UART_MSR_CTS); |
| 523 | if (tty->hw_stopped) { | 523 | if (tty->hw_stopped) { |
| 524 | if (cts) { | 524 | if (cts) { |
| @@ -671,12 +671,12 @@ static int sdio_uart_activate(struct tty_port *tport, struct tty_struct *tty) | |||
| 671 | port->ier = UART_IER_RLSI|UART_IER_RDI|UART_IER_RTOIE|UART_IER_UUE; | 671 | port->ier = UART_IER_RLSI|UART_IER_RDI|UART_IER_RTOIE|UART_IER_UUE; |
| 672 | port->mctrl = TIOCM_OUT2; | 672 | port->mctrl = TIOCM_OUT2; |
| 673 | 673 | ||
| 674 | sdio_uart_change_speed(port, tty->termios, NULL); | 674 | sdio_uart_change_speed(port, &tty->termios, NULL); |
| 675 | 675 | ||
| 676 | if (tty->termios->c_cflag & CBAUD) | 676 | if (tty->termios.c_cflag & CBAUD) |
| 677 | sdio_uart_set_mctrl(port, TIOCM_RTS | TIOCM_DTR); | 677 | sdio_uart_set_mctrl(port, TIOCM_RTS | TIOCM_DTR); |
| 678 | 678 | ||
| 679 | if (tty->termios->c_cflag & CRTSCTS) | 679 | if (tty->termios.c_cflag & CRTSCTS) |
| 680 | if (!(sdio_uart_get_mctrl(port) & TIOCM_CTS)) | 680 | if (!(sdio_uart_get_mctrl(port) & TIOCM_CTS)) |
| 681 | tty->hw_stopped = 1; | 681 | tty->hw_stopped = 1; |
| 682 | 682 | ||
| @@ -850,7 +850,7 @@ static void sdio_uart_throttle(struct tty_struct *tty) | |||
| 850 | { | 850 | { |
| 851 | struct sdio_uart_port *port = tty->driver_data; | 851 | struct sdio_uart_port *port = tty->driver_data; |
| 852 | 852 | ||
| 853 | if (!I_IXOFF(tty) && !(tty->termios->c_cflag & CRTSCTS)) | 853 | if (!I_IXOFF(tty) && !(tty->termios.c_cflag & CRTSCTS)) |
| 854 | return; | 854 | return; |
| 855 | 855 | ||
| 856 | if (sdio_uart_claim_func(port) != 0) | 856 | if (sdio_uart_claim_func(port) != 0) |
| @@ -861,7 +861,7 @@ static void sdio_uart_throttle(struct tty_struct *tty) | |||
| 861 | sdio_uart_start_tx(port); | 861 | sdio_uart_start_tx(port); |
| 862 | } | 862 | } |
| 863 | 863 | ||
| 864 | if (tty->termios->c_cflag & CRTSCTS) | 864 | if (tty->termios.c_cflag & CRTSCTS) |
| 865 | sdio_uart_clear_mctrl(port, TIOCM_RTS); | 865 | sdio_uart_clear_mctrl(port, TIOCM_RTS); |
| 866 | 866 | ||
| 867 | sdio_uart_irq(port->func); | 867 | sdio_uart_irq(port->func); |
| @@ -872,7 +872,7 @@ static void sdio_uart_unthrottle(struct tty_struct *tty) | |||
| 872 | { | 872 | { |
| 873 | struct sdio_uart_port *port = tty->driver_data; | 873 | struct sdio_uart_port *port = tty->driver_data; |
| 874 | 874 | ||
| 875 | if (!I_IXOFF(tty) && !(tty->termios->c_cflag & CRTSCTS)) | 875 | if (!I_IXOFF(tty) && !(tty->termios.c_cflag & CRTSCTS)) |
| 876 | return; | 876 | return; |
| 877 | 877 | ||
| 878 | if (sdio_uart_claim_func(port) != 0) | 878 | if (sdio_uart_claim_func(port) != 0) |
| @@ -887,7 +887,7 @@ static void sdio_uart_unthrottle(struct tty_struct *tty) | |||
| 887 | } | 887 | } |
| 888 | } | 888 | } |
| 889 | 889 | ||
| 890 | if (tty->termios->c_cflag & CRTSCTS) | 890 | if (tty->termios.c_cflag & CRTSCTS) |
| 891 | sdio_uart_set_mctrl(port, TIOCM_RTS); | 891 | sdio_uart_set_mctrl(port, TIOCM_RTS); |
| 892 | 892 | ||
| 893 | sdio_uart_irq(port->func); | 893 | sdio_uart_irq(port->func); |
| @@ -898,12 +898,12 @@ static void sdio_uart_set_termios(struct tty_struct *tty, | |||
| 898 | struct ktermios *old_termios) | 898 | struct ktermios *old_termios) |
| 899 | { | 899 | { |
| 900 | struct sdio_uart_port *port = tty->driver_data; | 900 | struct sdio_uart_port *port = tty->driver_data; |
| 901 | unsigned int cflag = tty->termios->c_cflag; | 901 | unsigned int cflag = tty->termios.c_cflag; |
| 902 | 902 | ||
| 903 | if (sdio_uart_claim_func(port) != 0) | 903 | if (sdio_uart_claim_func(port) != 0) |
| 904 | return; | 904 | return; |
| 905 | 905 | ||
| 906 | sdio_uart_change_speed(port, tty->termios, old_termios); | 906 | sdio_uart_change_speed(port, &tty->termios, old_termios); |
| 907 | 907 | ||
| 908 | /* Handle transition to B0 status */ | 908 | /* Handle transition to B0 status */ |
| 909 | if ((old_termios->c_cflag & CBAUD) && !(cflag & CBAUD)) | 909 | if ((old_termios->c_cflag & CBAUD) && !(cflag & CBAUD)) |
| @@ -1132,8 +1132,8 @@ static int sdio_uart_probe(struct sdio_func *func, | |||
| 1132 | kfree(port); | 1132 | kfree(port); |
| 1133 | } else { | 1133 | } else { |
| 1134 | struct device *dev; | 1134 | struct device *dev; |
| 1135 | dev = tty_register_device(sdio_uart_tty_driver, | 1135 | dev = tty_port_register_device(&port->port, |
| 1136 | port->index, &func->dev); | 1136 | sdio_uart_tty_driver, port->index, &func->dev); |
| 1137 | if (IS_ERR(dev)) { | 1137 | if (IS_ERR(dev)) { |
| 1138 | sdio_uart_port_remove(port); | 1138 | sdio_uart_port_remove(port); |
| 1139 | ret = PTR_ERR(dev); | 1139 | ret = PTR_ERR(dev); |
diff --git a/drivers/mmc/host/omap.c b/drivers/mmc/host/omap.c index a5999a74496a..87c0293a1eef 100644 --- a/drivers/mmc/host/omap.c +++ b/drivers/mmc/host/omap.c | |||
| @@ -33,7 +33,6 @@ | |||
| 33 | #include <asm/io.h> | 33 | #include <asm/io.h> |
| 34 | #include <asm/irq.h> | 34 | #include <asm/irq.h> |
| 35 | 35 | ||
| 36 | #include <plat/board.h> | ||
| 37 | #include <plat/mmc.h> | 36 | #include <plat/mmc.h> |
| 38 | #include <asm/gpio.h> | 37 | #include <asm/gpio.h> |
| 39 | #include <plat/dma.h> | 38 | #include <plat/dma.h> |
diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers/mmc/host/omap_hsmmc.c index 3a09f93cc3b6..f871b31ece5a 100644 --- a/drivers/mmc/host/omap_hsmmc.c +++ b/drivers/mmc/host/omap_hsmmc.c | |||
| @@ -40,7 +40,6 @@ | |||
| 40 | #include <linux/regulator/consumer.h> | 40 | #include <linux/regulator/consumer.h> |
| 41 | #include <linux/pm_runtime.h> | 41 | #include <linux/pm_runtime.h> |
| 42 | #include <mach/hardware.h> | 42 | #include <mach/hardware.h> |
| 43 | #include <plat/board.h> | ||
| 44 | #include <plat/mmc.h> | 43 | #include <plat/mmc.h> |
| 45 | #include <plat/cpu.h> | 44 | #include <plat/cpu.h> |
| 46 | 45 | ||
