| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Copyright (C) 2008 |
|---|
| 3 | 4 | * Guennadi Liakhovetski, DENX Software Engineering, <lg@denx.de> |
|---|
| 4 | 5 | * |
|---|
| 5 | 6 | * 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. |
|---|
| 10 | 7 | */ |
|---|
| 11 | 8 | |
|---|
| 12 | 9 | #include <linux/dma-mapping.h> |
|---|
| .. | .. |
|---|
| 1302 | 1299 | return IRQ_HANDLED; |
|---|
| 1303 | 1300 | } |
|---|
| 1304 | 1301 | |
|---|
| 1305 | | -static void ipu_gc_tasklet(unsigned long arg) |
|---|
| 1302 | +static void ipu_gc_tasklet(struct tasklet_struct *t) |
|---|
| 1306 | 1303 | { |
|---|
| 1307 | | - struct ipu *ipu = (struct ipu *)arg; |
|---|
| 1304 | + struct ipu *ipu = from_tasklet(ipu, t, tasklet); |
|---|
| 1308 | 1305 | int i; |
|---|
| 1309 | 1306 | |
|---|
| 1310 | 1307 | for (i = 0; i < IPU_CHANNELS_NUM; i++) { |
|---|
| .. | .. |
|---|
| 1743 | 1740 | if (ret < 0) |
|---|
| 1744 | 1741 | goto err_idmac_init; |
|---|
| 1745 | 1742 | |
|---|
| 1746 | | - tasklet_init(&ipu_data.tasklet, ipu_gc_tasklet, (unsigned long)&ipu_data); |
|---|
| 1743 | + tasklet_setup(&ipu_data.tasklet, ipu_gc_tasklet); |
|---|
| 1747 | 1744 | |
|---|
| 1748 | 1745 | ipu_data.dev = &pdev->dev; |
|---|
| 1749 | 1746 | |
|---|