net: bcmgenet: remove unused spinlock member
authorFlorian Fainelli <f.fainelli@gmail.com>
Thu, 20 Mar 2014 17:53:20 +0000 (10:53 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 20 Mar 2014 21:36:12 +0000 (17:36 -0400)
The spinlock cookie in bcmgenet_priv is never used, get rid of it.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/genet/bcmgenet.c
drivers/net/ethernet/broadcom/genet/bcmgenet.h

index 72ce6e8115fa1e2f0759f2fb690b319d4017d78d..e836c4c353999bdf68ac0e9d39fb62b8664c98ff 100644 (file)
@@ -2498,7 +2498,6 @@ static int bcmgenet_probe(struct platform_device *pdev)
 
        bcmgenet_set_hw_params(priv);
 
-       spin_lock_init(&priv->lock);
        /* Mii wait queue */
        init_waitqueue_head(&priv->wq);
        /* Always use RX_BUF_LENGTH (2KB) buffer for all chips */
index a6758adefaab5dc7b9672b7b384efa29a1fe741f..0f117105fed1664a33d0af4325c2b24caa34d86f 100644 (file)
@@ -523,7 +523,6 @@ struct bcmgenet_priv {
        void __iomem *base;
        enum bcmgenet_version version;
        struct net_device *dev;
-       spinlock_t lock;
        u32 int0_mask;
        u32 int1_mask;