提交 d766a4ed 编写于 作者: D Dmitry Baryshkov 提交者: Jeff Garzik

SMC911x: unbreak PXA builds

Currently SMC911x driver is broken on ARM/PXA builds.
Unbreak such configurations.
Signed-off-by: NDmitry Baryshkov <dbaryshkov@gmail.com>
Signed-off-by: NJeff Garzik <jgarzik@redhat.com>
上级 051d36f3
...@@ -1242,7 +1242,7 @@ smc911x_rx_dma_irq(int dma, void *data) ...@@ -1242,7 +1242,7 @@ smc911x_rx_dma_irq(int dma, void *data)
netif_rx(skb); netif_rx(skb);
spin_lock_irqsave(&lp->lock, flags); spin_lock_irqsave(&lp->lock, flags);
pkts = (SMC_GET_RX_FIFO_INF() & RX_FIFO_INF_RXSUSED_) >> 16; pkts = (SMC_GET_RX_FIFO_INF(lp) & RX_FIFO_INF_RXSUSED_) >> 16;
if (pkts != 0) { if (pkts != 0) {
smc911x_rcv(dev); smc911x_rcv(dev);
}else { }else {
......
...@@ -50,6 +50,10 @@ ...@@ -50,6 +50,10 @@
#define SMC_DYNAMIC_BUS_CONFIG #define SMC_DYNAMIC_BUS_CONFIG
#endif #endif
#ifdef SMC_USE_PXA_DMA
#define SMC_USE_DMA
#endif
/* store this information for the driver.. */ /* store this information for the driver.. */
struct smc911x_local { struct smc911x_local {
/* /*
...@@ -196,8 +200,6 @@ static inline void SMC_outsl(struct smc911x_local *lp, int reg, ...@@ -196,8 +200,6 @@ static inline void SMC_outsl(struct smc911x_local *lp, int reg,
#ifdef SMC_USE_PXA_DMA #ifdef SMC_USE_PXA_DMA
#define SMC_USE_DMA
/* /*
* Define the request and free functions * Define the request and free functions
* These are unfortunately architecture specific as no generic allocation * These are unfortunately architecture specific as no generic allocation
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册