.. | .. |
---|
224 | 224 | return 0; |
---|
225 | 225 | } |
---|
226 | 226 | |
---|
227 | | -static void hidma_issue_task(unsigned long arg) |
---|
| 227 | +static void hidma_issue_task(struct tasklet_struct *t) |
---|
228 | 228 | { |
---|
229 | | - struct hidma_dev *dmadev = (struct hidma_dev *)arg; |
---|
| 229 | + struct hidma_dev *dmadev = from_tasklet(dmadev, t, task); |
---|
230 | 230 | |
---|
231 | 231 | pm_runtime_get_sync(dmadev->ddev.dev); |
---|
232 | 232 | hidma_ll_start(dmadev->lldev); |
---|
.. | .. |
---|
550 | 550 | kfree(mdesc); |
---|
551 | 551 | } |
---|
552 | 552 | |
---|
553 | | - mchan->allocated = 0; |
---|
| 553 | + mchan->allocated = false; |
---|
554 | 554 | spin_unlock_irqrestore(&mchan->lock, irqflags); |
---|
555 | 555 | } |
---|
556 | 556 | |
---|
.. | .. |
---|
885 | 885 | goto uninit; |
---|
886 | 886 | |
---|
887 | 887 | dmadev->irq = chirq; |
---|
888 | | - tasklet_init(&dmadev->task, hidma_issue_task, (unsigned long)dmadev); |
---|
| 888 | + tasklet_setup(&dmadev->task, hidma_issue_task); |
---|
889 | 889 | hidma_debug_init(dmadev); |
---|
890 | 890 | hidma_sysfs_init(dmadev); |
---|
891 | 891 | dev_info(&pdev->dev, "HI-DMA engine driver registration complete\n"); |
---|
.. | .. |
---|
897 | 897 | if (msi) |
---|
898 | 898 | hidma_free_msis(dmadev); |
---|
899 | 899 | |
---|
900 | | - hidma_debug_uninit(dmadev); |
---|
901 | 900 | hidma_ll_uninit(dmadev->lldev); |
---|
902 | 901 | dmafree: |
---|
903 | 902 | if (dmadev) |
---|