]> nv-tegra.nvidia Code Review - linux-2.6.git/commitdiff
[PATCH] DM9000 - do no re-init spin lock
authorBen Dooks <ben-linux@fluff.org>
Tue, 13 Jun 2006 23:05:50 +0000 (00:05 +0100)
committerJeff Garzik <jeff@garzik.org>
Tue, 27 Jun 2006 02:01:53 +0000 (22:01 -0400)
The DM9000 initialisation sequence for the
hardware re-initialise the board spin-lock,
which is in my view wrong.

This patch removes the extra spin lock
initialisation

Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/net/dm9000.c

index e6bdbd3a6796a748dc10291c343a059841065cbd..7eea8e1a1230a5761957cf5b2c8170f99e43f0d8 100644 (file)
@@ -665,7 +665,6 @@ dm9000_init_dm9000(struct net_device *dev)
        db->tx_pkt_cnt = 0;
        db->queue_pkt_len = 0;
        dev->trans_start = 0;
-       spin_lock_init(&db->lock);
 }
 
 /*