diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2008-01-31 09:33:19 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2008-01-31 09:33:19 +0000 |
commit | 0d7245c003259eab8d7232652958be0218a241dc (patch) | |
tree | dbd92e0df83f11acb8b0b7bfe912a80851f98bf8 /target/linux/adm5120/files | |
parent | d6968206821d9e99cb10da1d220f1a447e84c1c9 (diff) | |
download | upstream-0d7245c003259eab8d7232652958be0218a241dc.tar.gz upstream-0d7245c003259eab8d7232652958be0218a241dc.tar.bz2 upstream-0d7245c003259eab8d7232652958be0218a241dc.zip |
[adm5120] fix a switch driver bug
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10336 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/adm5120/files')
-rw-r--r-- | target/linux/adm5120/files/drivers/net/adm5120sw.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/target/linux/adm5120/files/drivers/net/adm5120sw.c b/target/linux/adm5120/files/drivers/net/adm5120sw.c index 3833c1ef2d..ff933cf7cf 100644 --- a/target/linux/adm5120/files/drivers/net/adm5120sw.c +++ b/target/linux/adm5120/files/drivers/net/adm5120sw.c @@ -43,7 +43,7 @@ #define DRV_NAME "adm5120-switch" #define DRV_DESC "ADM5120 built-in ethernet switch driver" -#define DRV_VERSION "0.1.0" +#define DRV_VERSION "0.1.1" #define CONFIG_ADM5120_SWITCH_NAPI 1 #undef CONFIG_ADM5120_SWITCH_DEBUG @@ -430,7 +430,7 @@ static int adm5120_switch_rx(int limit) dma_cache_wback_inv((unsigned long)skb->data, skb->len); -#ifdef CONFIG_ADM5120_SWITCH_USE_NAPI +#ifdef CONFIG_ADM5120_SWITCH_NAPI netif_receive_skb(skb); #else netif_rx(skb); @@ -524,7 +524,7 @@ static int adm5120_if_poll(struct net_device *dev, int *budget) dev->name, done, status); return 1; } -#endif /* CONFIG_ADM5120_SWITCH_USE_NAPI */ +#endif /* CONFIG_ADM5120_SWITCH_NAPI */ static irqreturn_t adm5120_switch_irq(int irq, void *dev_id) |