.. | .. |
---|
172 | 172 | dev_dbg(port->dev, "%s - leaving\n", __func__); |
---|
173 | 173 | } |
---|
174 | 174 | |
---|
175 | | -static void timbuart_tasklet(unsigned long arg) |
---|
| 175 | +static void timbuart_tasklet(struct tasklet_struct *t) |
---|
176 | 176 | { |
---|
177 | | - struct timbuart_port *uart = (struct timbuart_port *)arg; |
---|
| 177 | + struct timbuart_port *uart = from_tasklet(uart, t, tasklet); |
---|
178 | 178 | u32 isr, ier = 0; |
---|
179 | 179 | |
---|
180 | 180 | spin_lock(&uart->port.lock); |
---|
.. | .. |
---|
451 | 451 | } |
---|
452 | 452 | uart->port.irq = irq; |
---|
453 | 453 | |
---|
454 | | - tasklet_init(&uart->tasklet, timbuart_tasklet, (unsigned long)uart); |
---|
| 454 | + tasklet_setup(&uart->tasklet, timbuart_tasklet); |
---|
455 | 455 | |
---|
456 | 456 | err = uart_register_driver(&timbuart_driver); |
---|
457 | 457 | if (err) |
---|