diff options
| author | Arnd Bergmann <arnd@arndb.de> | 2008-05-20 13:15:36 -0400 |
|---|---|---|
| committer | Jonathan Corbet <corbet@lwn.net> | 2008-06-20 16:05:54 -0400 |
| commit | 52e7c5e08201e20ddbe93cb1977869c38072bc2f (patch) | |
| tree | 21947b58d4c822f94b56dad8f70fc5a5e0329d75 /arch/mips/basler | |
| parent | 864fe51671c9e44fb9d02765623daac9acc26a8b (diff) | |
basler-excite: BKL pushdown
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/mips/basler')
| -rw-r--r-- | arch/mips/basler/excite/excite_iodev.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/arch/mips/basler/excite/excite_iodev.c b/arch/mips/basler/excite/excite_iodev.c index 476d20e08d0e..a1e3526b4a94 100644 --- a/arch/mips/basler/excite/excite_iodev.c +++ b/arch/mips/basler/excite/excite_iodev.c | |||
| @@ -26,6 +26,7 @@ | |||
| 26 | #include <linux/interrupt.h> | 26 | #include <linux/interrupt.h> |
| 27 | #include <linux/platform_device.h> | 27 | #include <linux/platform_device.h> |
| 28 | #include <linux/miscdevice.h> | 28 | #include <linux/miscdevice.h> |
| 29 | #include <linux/smp_lock.h> | ||
| 29 | 30 | ||
| 30 | #include "excite_iodev.h" | 31 | #include "excite_iodev.h" |
| 31 | 32 | ||
| @@ -110,8 +111,14 @@ static int __exit iodev_remove(struct device *dev) | |||
| 110 | 111 | ||
| 111 | static int iodev_open(struct inode *i, struct file *f) | 112 | static int iodev_open(struct inode *i, struct file *f) |
| 112 | { | 113 | { |
| 113 | return request_irq(iodev_irq, iodev_irqhdl, IRQF_DISABLED, | 114 | int ret; |
| 115 | |||
| 116 | lock_kernel(); | ||
| 117 | ret = request_irq(iodev_irq, iodev_irqhdl, IRQF_DISABLED, | ||
| 114 | iodev_name, &miscdev); | 118 | iodev_name, &miscdev); |
| 119 | unlock_kernel(); | ||
| 120 | |||
| 121 | return ret; | ||
| 115 | } | 122 | } |
| 116 | 123 | ||
| 117 | static int iodev_release(struct inode *i, struct file *f) | 124 | static int iodev_release(struct inode *i, struct file *f) |
