aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/rt2x00
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2013-04-05 02:27:05 -0400
committerJohn W. Linville <linville@tuxdriver.com>2013-04-10 14:10:32 -0400
commit6aea60b825728fb59e6fa1424174b1e26cb3fc51 (patch)
tree5af1ac41ce38f7bc925bfd581dde78807abf1d50 /drivers/net/wireless/rt2x00
parentb9570b66876039620aa36de4eab57f16443e1e18 (diff)
rt2x00: rt2x00mmio: remove unused rt2x00pci_* defines
All users are converted to use the rt2x00mmio_* functions so remove the now unused defines. The patch contain no functional changes. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> Acked-by: Helmut Schaa <helmut.schaa@googlemail.com> Acked-by: Gertjan van Wingerde <gwingerde@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rt2x00')
-rw-r--r--drivers/net/wireless/rt2x00/rt2x00mmio.h11
1 files changed, 0 insertions, 11 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00mmio.h b/drivers/net/wireless/rt2x00/rt2x00mmio.h
index b0396ca0e6b0..cda3dbcf7ead 100644
--- a/drivers/net/wireless/rt2x00/rt2x00mmio.h
+++ b/drivers/net/wireless/rt2x00/rt2x00mmio.h
@@ -37,7 +37,6 @@ static inline void rt2x00mmio_register_read(struct rt2x00_dev *rt2x00dev,
37{ 37{
38 *value = readl(rt2x00dev->csr.base + offset); 38 *value = readl(rt2x00dev->csr.base + offset);
39} 39}
40#define rt2x00pci_register_read rt2x00mmio_register_read
41 40
42static inline void rt2x00mmio_register_multiread(struct rt2x00_dev *rt2x00dev, 41static inline void rt2x00mmio_register_multiread(struct rt2x00_dev *rt2x00dev,
43 const unsigned int offset, 42 const unsigned int offset,
@@ -45,7 +44,6 @@ static inline void rt2x00mmio_register_multiread(struct rt2x00_dev *rt2x00dev,
45{ 44{
46 memcpy_fromio(value, rt2x00dev->csr.base + offset, length); 45 memcpy_fromio(value, rt2x00dev->csr.base + offset, length);
47} 46}
48#define rt2x00pci_register_multiread rt2x00mmio_register_multiread
49 47
50static inline void rt2x00mmio_register_write(struct rt2x00_dev *rt2x00dev, 48static inline void rt2x00mmio_register_write(struct rt2x00_dev *rt2x00dev,
51 const unsigned int offset, 49 const unsigned int offset,
@@ -53,7 +51,6 @@ static inline void rt2x00mmio_register_write(struct rt2x00_dev *rt2x00dev,
53{ 51{
54 writel(value, rt2x00dev->csr.base + offset); 52 writel(value, rt2x00dev->csr.base + offset);
55} 53}
56#define rt2x00pci_register_write rt2x00mmio_register_write
57 54
58static inline void rt2x00mmio_register_multiwrite(struct rt2x00_dev *rt2x00dev, 55static inline void rt2x00mmio_register_multiwrite(struct rt2x00_dev *rt2x00dev,
59 const unsigned int offset, 56 const unsigned int offset,
@@ -62,7 +59,6 @@ static inline void rt2x00mmio_register_multiwrite(struct rt2x00_dev *rt2x00dev,
62{ 59{
63 __iowrite32_copy(rt2x00dev->csr.base + offset, value, length >> 2); 60 __iowrite32_copy(rt2x00dev->csr.base + offset, value, length >> 2);
64} 61}
65#define rt2x00pci_register_multiwrite rt2x00mmio_register_multiwrite
66 62
67/** 63/**
68 * rt2x00mmio_regbusy_read - Read from register with busy check 64 * rt2x00mmio_regbusy_read - Read from register with busy check
@@ -81,7 +77,6 @@ int rt2x00mmio_regbusy_read(struct rt2x00_dev *rt2x00dev,
81 const unsigned int offset, 77 const unsigned int offset,
82 const struct rt2x00_field32 field, 78 const struct rt2x00_field32 field,
83 u32 *reg); 79 u32 *reg);
84#define rt2x00pci_regbusy_read rt2x00mmio_regbusy_read
85 80
86/** 81/**
87 * struct queue_entry_priv_mmio: Per entry PCI specific information 82 * struct queue_entry_priv_mmio: Per entry PCI specific information
@@ -95,7 +90,6 @@ struct queue_entry_priv_mmio {
95 __le32 *desc; 90 __le32 *desc;
96 dma_addr_t desc_dma; 91 dma_addr_t desc_dma;
97}; 92};
98#define queue_entry_priv_pci queue_entry_priv_mmio
99 93
100/** 94/**
101 * rt2x00mmio_rxdone - Handle RX done events 95 * rt2x00mmio_rxdone - Handle RX done events
@@ -105,7 +99,6 @@ struct queue_entry_priv_mmio {
105 * pending rx frames were processed. 99 * pending rx frames were processed.
106 */ 100 */
107bool rt2x00mmio_rxdone(struct rt2x00_dev *rt2x00dev); 101bool rt2x00mmio_rxdone(struct rt2x00_dev *rt2x00dev);
108#define rt2x00pci_rxdone rt2x00mmio_rxdone
109 102
110/** 103/**
111 * rt2x00mmio_flush_queue - Flush data queue 104 * rt2x00mmio_flush_queue - Flush data queue
@@ -116,15 +109,11 @@ bool rt2x00mmio_rxdone(struct rt2x00_dev *rt2x00dev);
116 * to become empty. 109 * to become empty.
117 */ 110 */
118void rt2x00mmio_flush_queue(struct data_queue *queue, bool drop); 111void rt2x00mmio_flush_queue(struct data_queue *queue, bool drop);
119#define rt2x00pci_flush_queue rt2x00mmio_flush_queue
120 112
121/* 113/*
122 * Device initialization handlers. 114 * Device initialization handlers.
123 */ 115 */
124int rt2x00mmio_initialize(struct rt2x00_dev *rt2x00dev); 116int rt2x00mmio_initialize(struct rt2x00_dev *rt2x00dev);
125#define rt2x00pci_initialize rt2x00mmio_initialize
126
127void rt2x00mmio_uninitialize(struct rt2x00_dev *rt2x00dev); 117void rt2x00mmio_uninitialize(struct rt2x00_dev *rt2x00dev);
128#define rt2x00pci_uninitialize rt2x00mmio_uninitialize
129 118
130#endif /* RT2X00MMIO_H */ 119#endif /* RT2X00MMIO_H */