.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * Copyright (C) Freescale Semicondutor, Inc. 2007, 2008. |
---|
3 | 4 | * Copyright (C) Semihalf 2009 |
---|
.. | .. |
---|
11 | 12 | * |
---|
12 | 13 | * Approved as OSADL project by a majority of OSADL members and funded |
---|
13 | 14 | * by OSADL membership fees in 2009; for details see www.osadl.org. |
---|
14 | | - * |
---|
15 | | - * This program is free software; you can redistribute it and/or modify it |
---|
16 | | - * under the terms of the GNU General Public License as published by the Free |
---|
17 | | - * Software Foundation; either version 2 of the License, or (at your option) |
---|
18 | | - * any later version. |
---|
19 | | - * |
---|
20 | | - * This program is distributed in the hope that it will be useful, but WITHOUT |
---|
21 | | - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
---|
22 | | - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for |
---|
23 | | - * more details. |
---|
24 | | - * |
---|
25 | | - * The full GNU General Public License is included in this distribution in the |
---|
26 | | - * file called COPYING. |
---|
27 | 15 | */ |
---|
28 | 16 | |
---|
29 | 17 | /* |
---|
.. | .. |
---|
426 | 414 | } |
---|
427 | 415 | |
---|
428 | 416 | /* DMA Tasklet */ |
---|
429 | | -static void mpc_dma_tasklet(unsigned long data) |
---|
| 417 | +static void mpc_dma_tasklet(struct tasklet_struct *t) |
---|
430 | 418 | { |
---|
431 | | - struct mpc_dma *mdma = (void *)data; |
---|
| 419 | + struct mpc_dma *mdma = from_tasklet(mdma, t, tasklet); |
---|
432 | 420 | unsigned long flags; |
---|
433 | 421 | uint es; |
---|
434 | 422 | |
---|
.. | .. |
---|
1021 | 1009 | list_add_tail(&mchan->chan.device_node, &dma->channels); |
---|
1022 | 1010 | } |
---|
1023 | 1011 | |
---|
1024 | | - tasklet_init(&mdma->tasklet, mpc_dma_tasklet, (unsigned long)mdma); |
---|
| 1012 | + tasklet_setup(&mdma->tasklet, mpc_dma_tasklet); |
---|
1025 | 1013 | |
---|
1026 | 1014 | /* |
---|
1027 | 1015 | * Configure DMA Engine: |
---|