hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/arch/powerpc/sysdev/fsl_rmu.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Freescale MPC85xx/MPC86xx RapidIO RMU support
34 *
....@@ -17,11 +18,6 @@
1718 *
1819 * Copyright 2005 MontaVista Software, Inc.
1920 * Matt Porter <mporter@kernel.crashing.org>
20
- *
21
- * This program is free software; you can redistribute it and/or modify it
22
- * under the terms of the GNU General Public License as published by the
23
- * Free Software Foundation; either version 2 of the License, or (at your
24
- * option) any later version.
2521 */
2622
2723 #include <linux/types.h>
....@@ -757,14 +753,13 @@
757753
758754 /* Initialize outbound message descriptor ring */
759755 rmu->msg_tx_ring.virt = dma_alloc_coherent(priv->dev,
760
- rmu->msg_tx_ring.size * RIO_MSG_DESC_SIZE,
761
- &rmu->msg_tx_ring.phys, GFP_KERNEL);
756
+ rmu->msg_tx_ring.size * RIO_MSG_DESC_SIZE,
757
+ &rmu->msg_tx_ring.phys,
758
+ GFP_KERNEL);
762759 if (!rmu->msg_tx_ring.virt) {
763760 rc = -ENOMEM;
764761 goto out_dma;
765762 }
766
- memset(rmu->msg_tx_ring.virt, 0,
767
- rmu->msg_tx_ring.size * RIO_MSG_DESC_SIZE);
768763 rmu->msg_tx_ring.tx_slot = 0;
769764
770765 /* Point dequeue/enqueue pointers at first entry in ring */