mips: Remove BKL from tb0219
authorThomas Gleixner <tglx@linutronix.de>
Sat, 10 Oct 2009 14:07:03 +0000 (16:07 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 14 Oct 2009 15:36:53 +0000 (17:36 +0200)
commitd2a7be0be1099c2554f4705d2c1c5081f8f96efc
tree92b7542288a26292c3e49b09121a9831ad7350a1
parent3a8183a2061ba54c4c2b3cd31c3add6fd717e853
mips: Remove BKL from tb0219

cycle_kernel_lock() was added during the big BKL pushdown. It should
ensure the serializiation against driver init code.

tb0219_base is initialized before the character device is
registered, but the spinlock is not initialized.

Initialize the spinlock statically and remove cycle_kernel_lock().

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
LKML-Reference: <20091010153350.222654356@linutronix.de>
Cc: Yoichi Yuasa <yuasa@linux-mips.org>
Cc: Ralf Baechle <ralf@linux-mips.org>
drivers/char/tb0219.c