aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/cxgb4vf
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2010-07-07 19:52:37 -0400
committerDavid S. Miller <davem@davemloft.net>2010-07-09 02:12:26 -0400
commit57b2eaf7ddeae307fac202d82a6fabf5976e575b (patch)
treeca5a33d97d8ff165e7067bb39c92c7c246374d0f /drivers/net/cxgb4vf
parenta204b48ed4dc31acf61090e530430ce3272b6aab (diff)
cxgb4vf: remove obsolete DECLARE_PCI_UNMAP_ADDR usage
We could use DEFINE_DMA_UNMAP_ADDR instead but using CONFIG_NEED_DMA_MAP_STATE is a simpler way to see if a platform does real DMA unmapping. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/cxgb4vf')
-rw-r--r--drivers/net/cxgb4vf/sge.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/drivers/net/cxgb4vf/sge.c b/drivers/net/cxgb4vf/sge.c
index 3a7c02f98a4d..4bc1858dc303 100644
--- a/drivers/net/cxgb4vf/sge.c
+++ b/drivers/net/cxgb4vf/sge.c
@@ -228,15 +228,11 @@ static inline bool is_buf_mapped(const struct rx_sw_desc *sdesc)
228 */ 228 */
229static inline int need_skb_unmap(void) 229static inline int need_skb_unmap(void)
230{ 230{
231 /* 231#ifdef CONFIG_NEED_DMA_MAP_STATE
232 * This structure is used to tell if the platfrom needs buffer 232 return 1;
233 * unmapping by checking if DECLARE_PCI_UNMAP_ADDR defines anything. 233#else
234 */ 234 return 0;
235 struct dummy { 235#endif
236 DECLARE_PCI_UNMAP_ADDR(addr);
237 };
238
239 return sizeof(struct dummy) != 0;
240} 236}
241 237
242/** 238/**