Commit fd1e6c1d authored by Breno Leitao's avatar Breno Leitao Committed by Linus Torvalds

jsm: removing unused spinlock

This patch removes bd_lock spinlock (inside jsm_board structure).
The lock is initialized in the probe function and not used anymore.
Signed-off-by: default avatarBreno Leitao <leitao@linux.vnet.ibm.com>
Signed-off-by: default avatarAlan Cox <alan@linux.intel.com>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent fab89223
...@@ -130,8 +130,6 @@ struct jsm_board ...@@ -130,8 +130,6 @@ struct jsm_board
struct pci_dev *pci_dev; struct pci_dev *pci_dev;
u32 maxports; /* MAX ports this board can handle */ u32 maxports; /* MAX ports this board can handle */
spinlock_t bd_lock; /* Used to protect board */
spinlock_t bd_intr_lock; /* Used to protect the poller tasklet and spinlock_t bd_intr_lock; /* Used to protect the poller tasklet and
* the interrupt routine from each other. * the interrupt routine from each other.
*/ */
......
...@@ -88,7 +88,6 @@ static int __devinit jsm_probe_one(struct pci_dev *pdev, const struct pci_device ...@@ -88,7 +88,6 @@ static int __devinit jsm_probe_one(struct pci_dev *pdev, const struct pci_device
else else
brd->maxports = 2; brd->maxports = 2;
spin_lock_init(&brd->bd_lock);
spin_lock_init(&brd->bd_intr_lock); spin_lock_init(&brd->bd_intr_lock);
/* store which revision we have */ /* store which revision we have */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment