diff options
Diffstat (limited to 'drivers/net/au1000_eth.c')
-rw-r--r-- | drivers/net/au1000_eth.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/au1000_eth.c b/drivers/net/au1000_eth.c index 5ee1b0557a02..92c16c37ff23 100644 --- a/drivers/net/au1000_eth.c +++ b/drivers/net/au1000_eth.c | |||
@@ -653,6 +653,8 @@ static struct net_device * au1000_probe(int port_num) | |||
653 | 653 | ||
654 | aup = dev->priv; | 654 | aup = dev->priv; |
655 | 655 | ||
656 | spin_lock_init(&aup->lock); | ||
657 | |||
656 | /* Allocate the data buffers */ | 658 | /* Allocate the data buffers */ |
657 | /* Snooping works fine with eth on all au1xxx */ | 659 | /* Snooping works fine with eth on all au1xxx */ |
658 | aup->vaddr = (u32)dma_alloc_noncoherent(NULL, MAX_BUF_SIZE * | 660 | aup->vaddr = (u32)dma_alloc_noncoherent(NULL, MAX_BUF_SIZE * |
@@ -753,7 +755,6 @@ static struct net_device * au1000_probe(int port_num) | |||
753 | aup->tx_db_inuse[i] = pDB; | 755 | aup->tx_db_inuse[i] = pDB; |
754 | } | 756 | } |
755 | 757 | ||
756 | spin_lock_init(&aup->lock); | ||
757 | dev->base_addr = base; | 758 | dev->base_addr = base; |
758 | dev->irq = irq; | 759 | dev->irq = irq; |
759 | dev->open = au1000_open; | 760 | dev->open = au1000_open; |