display7seg: BKL pushdown

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
This commit is contained in:
Arnd Bergmann 2008-05-20 19:15:47 +02:00 committed by Jonathan Corbet
parent e73322ceef
commit 009228dfb6

View 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;
}