Skip to content

Commit 7efe161

Browse files
author
Kyle McMartin
committed
[PARISC] Initialize serial spinlocks in superio.c
git commit 976ecd1 changed our locking characteristics, and put the onus of spin_lock_init on superio.c. Signed-off-by: Kyle McMartin <kyle@parisc-linux.org>
1 parent 91313d6 commit 7efe161

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎drivers/parisc/superio.c‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
* (C) Copyright 2000 Alex deVries <alex@onefishtwo.ca>
1212
* (C) Copyright 2001 John Marvin <jsm fc hp com>
1313
* (C) Copyright 2003 Grant Grundler <grundler parisc-linux org>
14+
* (C) Copyright 2005 Kyle McMartin <kyle@parisc-linux.org>
1415
*
1516
* This program is free software; you can redistribute it and/or
1617
* modify it under the terms of the GNU General Public License as
@@ -405,6 +406,7 @@ static void __devinit superio_serial_init(void)
405406

406407
serial[0].iobase = sio_dev.sp1_base;
407408
serial[0].irq = SP1_IRQ;
409+
spin_lock_init(&serial[0].lock);
408410

409411
retval = early_serial_setup(&serial[0]);
410412
if (retval < 0) {
@@ -414,6 +416,7 @@ static void __devinit superio_serial_init(void)
414416

415417
serial[1].iobase = sio_dev.sp2_base;
416418
serial[1].irq = SP2_IRQ;
419+
spin_lock_init(&serial[1].lock);
417420
retval = early_serial_setup(&serial[1]);
418421

419422
if (retval < 0)

0 commit comments

Comments
 (0)