hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/drivers/dma/mpc512x_dma.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Copyright (C) Freescale Semicondutor, Inc. 2007, 2008.
34 * Copyright (C) Semihalf 2009
....@@ -11,19 +12,6 @@
1112 *
1213 * Approved as OSADL project by a majority of OSADL members and funded
1314 * 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.
2715 */
2816
2917 /*
....@@ -426,9 +414,9 @@
426414 }
427415
428416 /* DMA Tasklet */
429
-static void mpc_dma_tasklet(unsigned long data)
417
+static void mpc_dma_tasklet(struct tasklet_struct *t)
430418 {
431
- struct mpc_dma *mdma = (void *)data;
419
+ struct mpc_dma *mdma = from_tasklet(mdma, t, tasklet);
432420 unsigned long flags;
433421 uint es;
434422
....@@ -1021,7 +1009,7 @@
10211009 list_add_tail(&mchan->chan.device_node, &dma->channels);
10221010 }
10231011
1024
- tasklet_init(&mdma->tasklet, mpc_dma_tasklet, (unsigned long)mdma);
1012
+ tasklet_setup(&mdma->tasklet, mpc_dma_tasklet);
10251013
10261014 /*
10271015 * Configure DMA Engine: