patch-2.3.10 linux/drivers/char/bw-qcam.c
Next file: linux/drivers/char/c-qcam.c
Previous file: linux/drivers/char/buz.h
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Mon Jul 5 20:07:02 1999
- Orig file:
v2.3.9/linux/drivers/char/bw-qcam.c
- Orig date:
Fri Mar 26 13:57:41 1999
diff -u --recursive --new-file v2.3.9/linux/drivers/char/bw-qcam.c linux/drivers/char/bw-qcam.c
@@ -159,6 +159,8 @@
struct qcam_device *q;
q = kmalloc(sizeof(struct qcam_device), GFP_KERNEL);
+ if(q==NULL)
+ return NULL;
q->pport = port;
q->pdev = parport_register_device(port, "bw-qcam", NULL, NULL,
@@ -1045,7 +1047,7 @@
close_bwqcam(qcams[i]);
}
#else
-__initfunc(int init_bw_qcams(struct video_init *unused))
+int __init init_bw_qcams(struct video_init *unused)
{
struct parport *port;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)