sh: Remove BKL from landisk gio.
authorThomas Gleixner <tglx@linutronix.de>
Fri, 16 Oct 2009 05:42:33 +0000 (14:42 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Fri, 16 Oct 2009 05:42:33 +0000 (14:42 +0900)
commit52a94909f00e0ffceeac202e517a126d57c1c523
treeb483cbf3af528e66829a4e18bbceb9ab52a0f81b
parent5fb80ae8bd7549034845ebfba694d483070b768b
sh: Remove BKL from landisk gio.

The open function got the BKL via the big push down. Replace it by
preempt_enable/disable as this is sufficient for an UP machine.

The ioctl can be unlocked because there is no functionality which
requires serialization. The usage by multiple callers is broken with
and without the BKL due to the local static variable addr.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/boards/mach-landisk/gio.c