hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/dma/bestcomm/gen_bd.c
....@@ -1,14 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Driver for MPC52xx processor BestComm General Buffer Descriptor
34 *
45 * Copyright (C) 2007 Sylvain Munaut <tnt@246tNt.com>
56 * Copyright (C) 2006 AppSpec Computer Technologies Corp.
67 * Jeff Gibbons <jeff.gibbons@appspec.com>
7
- *
8
- * This program is free software; you can redistribute it and/or modify it
9
- * under the terms of the GNU General Public License version 2 as published
10
- * by the Free Software Foundation.
11
- *
128 */
139
1410 #include <linux/module.h>
....@@ -146,7 +142,7 @@
146142 tsk->index = 0;
147143 tsk->outdex = 0;
148144
149
- memset(tsk->bd, 0x00, tsk->num_bd * tsk->bd_size);
145
+ memset_io(tsk->bd, 0x00, tsk->num_bd * tsk->bd_size);
150146
151147 /* Configure some stuff */
152148 bcom_set_task_pragma(tsk->tasknum, BCOM_GEN_RX_BD_PRAGMA);
....@@ -230,7 +226,7 @@
230226 tsk->index = 0;
231227 tsk->outdex = 0;
232228
233
- memset(tsk->bd, 0x00, tsk->num_bd * tsk->bd_size);
229
+ memset_io(tsk->bd, 0x00, tsk->num_bd * tsk->bd_size);
234230
235231 /* Configure some stuff */
236232 bcom_set_task_pragma(tsk->tasknum, BCOM_GEN_TX_BD_PRAGMA);