display7seg: BKL pushdown
authorArnd Bergmann <arnd@arndb.de>
Tue, 20 May 2008 17:15:47 +0000 (19:15 +0200)
committerJonathan Corbet <corbet@lwn.net>
Fri, 20 Jun 2008 20:05:55 +0000 (14:05 -0600)
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
drivers/sbus/char/display7seg.c

index 3279a1b6501d6b2f5c108ecfbc73c91bd293f0f6..d8f5c0ca236d7f21b14a21a9b73e1b4483d3984b 100644 (file)
@@ -94,6 +94,7 @@ static int d7s_open(struct inode *inode, struct file *f)
 {
        if (D7S_MINOR != iminor(inode))
                return -ENODEV;
+       cycle_kernel_lock();
        atomic_inc(&d7s_users);
        return 0;
 }