patch-2.1.43 linux/drivers/char/dsp56k.c

Next file: linux/drivers/char/fbmem.c
Previous file: linux/drivers/char/diacr.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.42/linux/drivers/char/dsp56k.c linux/drivers/char/dsp56k.c
@@ -488,7 +488,7 @@
 	return 0;
 }
 
-static void dsp56k_release(struct inode *inode, struct file *file)
+static int dsp56k_release(struct inode *inode, struct file *file)
 {
 	int dev = MINOR(inode->i_rdev) & 0x0f;
 
@@ -501,12 +501,13 @@
 		break;
 	default:
 		printk("DSP56k driver: Unknown minor device: %d\n", dev);
-		return;
+		return -ENXIO;
 	}
 
 #ifdef MODULE
 	MOD_DEC_USE_COUNT;
-#endif /* MODULE */
+#endif
+	return 0;
 }
 
 static struct file_operations dsp56k_fops = {

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