sony_pi: Remove the BKL from open and ioctl
authorJohn Kacur <jkacur@redhat.com>
Sun, 18 Oct 2009 21:49:49 +0000 (23:49 +0200)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 4 Jan 2010 20:31:20 +0000 (12:31 -0800)
commit6432e734c99ed685e3cad72f7dcae4c65008fcab
tree2d654c52446e6619eed42648977aeb0181e0d98e
parenta87da40875f5510866a699b72818cce09b0b9040
sony_pi: Remove the BKL from open and ioctl

The BKL is in this function because of the BKL pushdown (see commit
f8f2c79d594463427f7114cedb1555110d547d89)

It is not needed here because the mutex_lock sonypi_device.lock provides
the necessary locking.

sonypi_misc_ioctl can be converted to unlocked ioctls since it relies on
its own locking (the mutex sonypi_device.lock) and not the bkl

Document that llseek is not needed by explictly setting it to no_llseek

LKML-Reference: <alpine.LFD.2.00.0910192019420.3563@localhost.localdomain>
Signed-off-by: John Kacur <jkacur@redhat.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/char/sonypi.c