git: dba90f9e260b - stable/13 - al_eth: Use device_t in preference to struct device *
Mark Johnston
markj at FreeBSD.org
Mon Apr 19 13:09:16 UTC 2021
The branch stable/13 has been updated by markj:
URL: https://cgit.FreeBSD.org/src/commit/?id=dba90f9e260b214d28611f31134f96d3cfd07fc6
commit dba90f9e260b214d28611f31134f96d3cfd07fc6
Author: Mark Johnston <markj at FreeBSD.org>
AuthorDate: 2021-04-12 13:32:02 +0000
Commit: Mark Johnston <markj at FreeBSD.org>
CommitDate: 2021-04-19 13:02:01 +0000
al_eth: Use device_t in preference to struct device *
Sponsored by: The FreeBSD Foundation
(cherry picked from commit d8b1601d54e94a47af37742420403b16be239ad2)
---
sys/dev/al_eth/al_eth.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/sys/dev/al_eth/al_eth.c b/sys/dev/al_eth/al_eth.c
index e2fe8c42603f..bfc94275a21c 100644
--- a/sys/dev/al_eth/al_eth.c
+++ b/sys/dev/al_eth/al_eth.c
@@ -558,7 +558,7 @@ al_dma_map_addr(void *arg, bus_dma_segment_t *segs, int nseg, int error)
}
static int
-al_dma_alloc_coherent(struct device *dev, bus_dma_tag_t *tag, bus_dmamap_t *map,
+al_dma_alloc_coherent(device_t dev, bus_dma_tag_t *tag, bus_dmamap_t *map,
bus_addr_t *baddr, void **vaddr, uint32_t size)
{
int ret;
@@ -2295,7 +2295,7 @@ static int
al_eth_setup_tx_resources(struct al_eth_adapter *adapter, int qid)
{
struct al_eth_ring *tx_ring = &adapter->tx_ring[qid];
- struct device *dev = tx_ring->dev;
+ device_t dev = tx_ring->dev;
struct al_udma_q_params *q_params = &tx_ring->q_params;
int size;
int ret;
@@ -2472,7 +2472,7 @@ static int
al_eth_setup_rx_resources(struct al_eth_adapter *adapter, unsigned int qid)
{
struct al_eth_ring *rx_ring = &adapter->rx_ring[qid];
- struct device *dev = rx_ring->dev;
+ device_t dev = rx_ring->dev;
struct al_udma_q_params *q_params = &rx_ring->q_params;
int size;
int ret;
More information about the dev-commits-src-branches
mailing list