| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Freescale MPC85xx/MPC86xx RapidIO RMU support |
|---|
| 3 | 4 | * |
|---|
| .. | .. |
|---|
| 17 | 18 | * |
|---|
| 18 | 19 | * Copyright 2005 MontaVista Software, Inc. |
|---|
| 19 | 20 | * 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. |
|---|
| 25 | 21 | */ |
|---|
| 26 | 22 | |
|---|
| 27 | 23 | #include <linux/types.h> |
|---|
| .. | .. |
|---|
| 757 | 753 | |
|---|
| 758 | 754 | /* Initialize outbound message descriptor ring */ |
|---|
| 759 | 755 | 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); |
|---|
| 762 | 759 | if (!rmu->msg_tx_ring.virt) { |
|---|
| 763 | 760 | rc = -ENOMEM; |
|---|
| 764 | 761 | goto out_dma; |
|---|
| 765 | 762 | } |
|---|
| 766 | | - memset(rmu->msg_tx_ring.virt, 0, |
|---|
| 767 | | - rmu->msg_tx_ring.size * RIO_MSG_DESC_SIZE); |
|---|
| 768 | 763 | rmu->msg_tx_ring.tx_slot = 0; |
|---|
| 769 | 764 | |
|---|
| 770 | 765 | /* Point dequeue/enqueue pointers at first entry in ring */ |
|---|