|
@@ -2447,11 +2447,12 @@ static int atmel_serial_remove(struct platform_device *pdev)
|
|
|
struct atmel_uart_port *atmel_port = to_atmel_uart_port(port);
|
|
struct atmel_uart_port *atmel_port = to_atmel_uart_port(port);
|
|
|
int ret = 0;
|
|
int ret = 0;
|
|
|
|
|
|
|
|
|
|
+ tasklet_kill(&atmel_port->tasklet);
|
|
|
|
|
+
|
|
|
device_init_wakeup(&pdev->dev, 0);
|
|
device_init_wakeup(&pdev->dev, 0);
|
|
|
|
|
|
|
|
ret = uart_remove_one_port(&atmel_uart, port);
|
|
ret = uart_remove_one_port(&atmel_uart, port);
|
|
|
|
|
|
|
|
- tasklet_kill(&atmel_port->tasklet);
|
|
|
|
|
kfree(atmel_port->rx_ring.buf);
|
|
kfree(atmel_port->rx_ring.buf);
|
|
|
|
|
|
|
|
/* "port" is allocated statically, so we shouldn't free it */
|
|
/* "port" is allocated statically, so we shouldn't free it */
|