aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/tty/serial/atmel_serial.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/tty/serial/atmel_serial.c b/drivers/tty/serial/atmel_serial.c
index 48ea47a32d5f..c421d11b3d4c 100644
--- a/drivers/tty/serial/atmel_serial.c
+++ b/drivers/tty/serial/atmel_serial.c
@@ -2447,11 +2447,12 @@ static int atmel_serial_remove(struct platform_device *pdev)
2447 struct atmel_uart_port *atmel_port = to_atmel_uart_port(port); 2447 struct atmel_uart_port *atmel_port = to_atmel_uart_port(port);
2448 int ret = 0; 2448 int ret = 0;
2449 2449
2450 tasklet_kill(&atmel_port->tasklet);
2451
2450 device_init_wakeup(&pdev->dev, 0); 2452 device_init_wakeup(&pdev->dev, 0);
2451 2453
2452 ret = uart_remove_one_port(&atmel_uart, port); 2454 ret = uart_remove_one_port(&atmel_uart, port);
2453 2455
2454 tasklet_kill(&atmel_port->tasklet);
2455 kfree(atmel_port->rx_ring.buf); 2456 kfree(atmel_port->rx_ring.buf);
2456 2457
2457 /* "port" is allocated statically, so we shouldn't free it */ 2458 /* "port" is allocated statically, so we shouldn't free it */