diff options
Diffstat (limited to 'drivers/tty/serial/sh-sci.c')
-rw-r--r-- | drivers/tty/serial/sh-sci.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/tty/serial/sh-sci.c b/drivers/tty/serial/sh-sci.c index ff6ba6d86cd8..cc56cb3b3eca 100644 --- a/drivers/tty/serial/sh-sci.c +++ b/drivers/tty/serial/sh-sci.c | |||
@@ -1614,10 +1614,10 @@ static void sci_request_dma(struct uart_port *port) | |||
1614 | hrtimer_init(&s->rx_timer, CLOCK_MONOTONIC, HRTIMER_MODE_REL); | 1614 | hrtimer_init(&s->rx_timer, CLOCK_MONOTONIC, HRTIMER_MODE_REL); |
1615 | s->rx_timer.function = rx_timer_fn; | 1615 | s->rx_timer.function = rx_timer_fn; |
1616 | 1616 | ||
1617 | s->chan_rx_saved = s->chan_rx = chan; | ||
1618 | |||
1617 | if (port->type == PORT_SCIFA || port->type == PORT_SCIFB) | 1619 | if (port->type == PORT_SCIFA || port->type == PORT_SCIFB) |
1618 | sci_submit_rx(s); | 1620 | sci_submit_rx(s); |
1619 | |||
1620 | s->chan_rx_saved = s->chan_rx = chan; | ||
1621 | } | 1621 | } |
1622 | } | 1622 | } |
1623 | 1623 | ||
@@ -3102,6 +3102,7 @@ static struct uart_driver sci_uart_driver = { | |||
3102 | static int sci_remove(struct platform_device *dev) | 3102 | static int sci_remove(struct platform_device *dev) |
3103 | { | 3103 | { |
3104 | struct sci_port *port = platform_get_drvdata(dev); | 3104 | struct sci_port *port = platform_get_drvdata(dev); |
3105 | unsigned int type = port->port.type; /* uart_remove_... clears it */ | ||
3105 | 3106 | ||
3106 | sci_ports_in_use &= ~BIT(port->port.line); | 3107 | sci_ports_in_use &= ~BIT(port->port.line); |
3107 | uart_remove_one_port(&sci_uart_driver, &port->port); | 3108 | uart_remove_one_port(&sci_uart_driver, &port->port); |
@@ -3112,8 +3113,7 @@ static int sci_remove(struct platform_device *dev) | |||
3112 | sysfs_remove_file(&dev->dev.kobj, | 3113 | sysfs_remove_file(&dev->dev.kobj, |
3113 | &dev_attr_rx_fifo_trigger.attr); | 3114 | &dev_attr_rx_fifo_trigger.attr); |
3114 | } | 3115 | } |
3115 | if (port->port.type == PORT_SCIFA || port->port.type == PORT_SCIFB || | 3116 | if (type == PORT_SCIFA || type == PORT_SCIFB || type == PORT_HSCIF) { |
3116 | port->port.type == PORT_HSCIF) { | ||
3117 | sysfs_remove_file(&dev->dev.kobj, | 3117 | sysfs_remove_file(&dev->dev.kobj, |
3118 | &dev_attr_rx_fifo_timeout.attr); | 3118 | &dev_attr_rx_fifo_timeout.attr); |
3119 | } | 3119 | } |