Skip to content

Commit

Permalink
jsm: removing unused spinlock
Browse files Browse the repository at this point in the history
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: Breno Leitao <leitao@linux.vnet.ibm.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Breno Leitao authored and Linus Torvalds committed May 6, 2009
1 parent fab8922 commit fd1e6c1
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
2 changes: 0 additions & 2 deletions drivers/serial/jsm/jsm.h
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,6 @@ struct jsm_board
struct pci_dev *pci_dev;
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
* the interrupt routine from each other.
*/
Expand Down
1 change: 0 additions & 1 deletion drivers/serial/jsm/jsm_driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ static int __devinit jsm_probe_one(struct pci_dev *pdev, const struct pci_device
else
brd->maxports = 2;

spin_lock_init(&brd->bd_lock);
spin_lock_init(&brd->bd_intr_lock);

/* store which revision we have */
Expand Down

0 comments on commit fd1e6c1

Please sign in to comment.