hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/dma/ipu/ipu_idmac.c
....@@ -1,12 +1,9 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Copyright (C) 2008
34 * Guennadi Liakhovetski, DENX Software Engineering, <lg@denx.de>
45 *
56 * Copyright (C) 2005-2007 Freescale Semiconductor, Inc. All Rights Reserved.
6
- *
7
- * This program is free software; you can redistribute it and/or modify
8
- * it under the terms of the GNU General Public License version 2 as
9
- * published by the Free Software Foundation.
107 */
118
129 #include <linux/dma-mapping.h>
....@@ -1302,9 +1299,9 @@
13021299 return IRQ_HANDLED;
13031300 }
13041301
1305
-static void ipu_gc_tasklet(unsigned long arg)
1302
+static void ipu_gc_tasklet(struct tasklet_struct *t)
13061303 {
1307
- struct ipu *ipu = (struct ipu *)arg;
1304
+ struct ipu *ipu = from_tasklet(ipu, t, tasklet);
13081305 int i;
13091306
13101307 for (i = 0; i < IPU_CHANNELS_NUM; i++) {
....@@ -1743,7 +1740,7 @@
17431740 if (ret < 0)
17441741 goto err_idmac_init;
17451742
1746
- tasklet_init(&ipu_data.tasklet, ipu_gc_tasklet, (unsigned long)&ipu_data);
1743
+ tasklet_setup(&ipu_data.tasklet, ipu_gc_tasklet);
17471744
17481745 ipu_data.dev = &pdev->dev;
17491746