Commit 7efe1611 authored by Kyle McMartin's avatar Kyle McMartin

[PARISC] Initialize serial spinlocks in superio.c

git commit 976ecd12 changed our locking
characteristics, and put the onus of spin_lock_init on superio.c.
Signed-off-by: default avatarKyle McMartin <kyle@parisc-linux.org>
parent 91313d60
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
* (C) Copyright 2000 Alex deVries <alex@onefishtwo.ca> * (C) Copyright 2000 Alex deVries <alex@onefishtwo.ca>
* (C) Copyright 2001 John Marvin <jsm fc hp com> * (C) Copyright 2001 John Marvin <jsm fc hp com>
* (C) Copyright 2003 Grant Grundler <grundler parisc-linux org> * (C) Copyright 2003 Grant Grundler <grundler parisc-linux org>
* (C) Copyright 2005 Kyle McMartin <kyle@parisc-linux.org>
* *
* This program is free software; you can redistribute it and/or * This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as * modify it under the terms of the GNU General Public License as
...@@ -405,6 +406,7 @@ static void __devinit superio_serial_init(void) ...@@ -405,6 +406,7 @@ static void __devinit superio_serial_init(void)
serial[0].iobase = sio_dev.sp1_base; serial[0].iobase = sio_dev.sp1_base;
serial[0].irq = SP1_IRQ; serial[0].irq = SP1_IRQ;
spin_lock_init(&serial[0].lock);
retval = early_serial_setup(&serial[0]); retval = early_serial_setup(&serial[0]);
if (retval < 0) { if (retval < 0) {
...@@ -414,6 +416,7 @@ static void __devinit superio_serial_init(void) ...@@ -414,6 +416,7 @@ static void __devinit superio_serial_init(void)
serial[1].iobase = sio_dev.sp2_base; serial[1].iobase = sio_dev.sp2_base;
serial[1].irq = SP2_IRQ; serial[1].irq = SP2_IRQ;
spin_lock_init(&serial[1].lock);
retval = early_serial_setup(&serial[1]); retval = early_serial_setup(&serial[1]);
if (retval < 0) if (retval < 0)
......
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