diff options
author | Jiri Slaby <jirislaby@gmail.com> | 2007-02-10 04:45:08 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-02-11 13:51:28 -0500 |
commit | 30a063a900518926966f4d75333c1bfbde1658fa (patch) | |
tree | 89e78ee73234c4e0a97a64f85bf93874490473b3 /drivers | |
parent | c76b09301eeb844036f17d008e15ff6532d8f33a (diff) |
[PATCH] Char: mxser_new, remove useless spinlock
gm_lock is useless, since ISA is configured at init time and there it's
serialized.
Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/char/mxser_new.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/char/mxser_new.c b/drivers/char/mxser_new.c index d385e791068b..13b9072a7729 100644 --- a/drivers/char/mxser_new.c +++ b/drivers/char/mxser_new.c | |||
@@ -313,7 +313,6 @@ static int mxvar_diagflag; | |||
313 | static unsigned char mxser_msr[MXSER_PORTS + 1]; | 313 | static unsigned char mxser_msr[MXSER_PORTS + 1]; |
314 | static struct mxser_mon_ext mon_data_ext; | 314 | static struct mxser_mon_ext mon_data_ext; |
315 | static int mxser_set_baud_method[MXSER_PORTS + 1]; | 315 | static int mxser_set_baud_method[MXSER_PORTS + 1]; |
316 | static spinlock_t gm_lock; | ||
317 | 316 | ||
318 | #ifdef CONFIG_PCI | 317 | #ifdef CONFIG_PCI |
319 | static int __devinit CheckIsMoxaMust(int io) | 318 | static int __devinit CheckIsMoxaMust(int io) |
@@ -1377,7 +1376,6 @@ static int __init mxser_program_mode(int port) | |||
1377 | { | 1376 | { |
1378 | int id, i, j, n; | 1377 | int id, i, j, n; |
1379 | 1378 | ||
1380 | spin_lock(&gm_lock); | ||
1381 | outb(0, port); | 1379 | outb(0, port); |
1382 | outb(0, port); | 1380 | outb(0, port); |
1383 | outb(0, port); | 1381 | outb(0, port); |
@@ -1385,7 +1383,6 @@ static int __init mxser_program_mode(int port) | |||
1385 | (void)inb(port); | 1383 | (void)inb(port); |
1386 | outb(0, port); | 1384 | outb(0, port); |
1387 | (void)inb(port); | 1385 | (void)inb(port); |
1388 | spin_unlock(&gm_lock); | ||
1389 | 1386 | ||
1390 | id = inb(port + 1) & 0x1F; | 1387 | id = inb(port + 1) & 0x1F; |
1391 | if ((id != C168_ASIC_ID) && | 1388 | if ((id != C168_ASIC_ID) && |
@@ -2684,7 +2681,6 @@ static int __init mxser_module_init(void) | |||
2684 | mxvar_sdriver = alloc_tty_driver(MXSER_PORTS + 1); | 2681 | mxvar_sdriver = alloc_tty_driver(MXSER_PORTS + 1); |
2685 | if (!mxvar_sdriver) | 2682 | if (!mxvar_sdriver) |
2686 | return -ENOMEM; | 2683 | return -ENOMEM; |
2687 | spin_lock_init(&gm_lock); | ||
2688 | 2684 | ||
2689 | printk(KERN_INFO "MOXA Smartio/Industio family driver version %s\n", | 2685 | printk(KERN_INFO "MOXA Smartio/Industio family driver version %s\n", |
2690 | MXSER_VERSION); | 2686 | MXSER_VERSION); |