patch-2.1.31 linux/drivers/char/lp.c

Next file: linux/drivers/char/lp_m68k.c
Previous file: linux/drivers/char/keyboard.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.30/linux/drivers/char/lp.c linux/drivers/char/lp.c
@@ -485,7 +485,7 @@
 	return 0;
 }
 
-static void lp_release(struct inode * inode, struct file * file)
+static int lp_release(struct inode * inode, struct file * file)
 {
 	unsigned int minor = MINOR(inode->i_rdev);
 	unsigned int irq;
@@ -498,6 +498,7 @@
 
 	LP_F(minor) &= ~LP_BUSY;
 	MOD_DEC_USE_COUNT;
+	return 0;
 }
 
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov