aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ieee1394
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ieee1394')
-rw-r--r--drivers/ieee1394/dv1394.c11
-rw-r--r--drivers/ieee1394/raw1394.c8
-rw-r--r--drivers/ieee1394/video1394.c5
3 files changed, 10 insertions, 14 deletions
diff --git a/drivers/ieee1394/dv1394.c b/drivers/ieee1394/dv1394.c
index 53329972c7db..c19f23267157 100644
--- a/drivers/ieee1394/dv1394.c
+++ b/drivers/ieee1394/dv1394.c
@@ -1834,9 +1834,6 @@ static int dv1394_release(struct inode *inode, struct file *file)
1834 /* OK to free the DMA buffer, no more mappings can exist */ 1834 /* OK to free the DMA buffer, no more mappings can exist */
1835 do_dv1394_shutdown(video, 1); 1835 do_dv1394_shutdown(video, 1);
1836 1836
1837 /* clean up async I/O users */
1838 dv1394_fasync(-1, file, 0);
1839
1840 /* give someone else a turn */ 1837 /* give someone else a turn */
1841 clear_bit(0, &video->open); 1838 clear_bit(0, &video->open);
1842 1839
@@ -2302,10 +2299,10 @@ static void dv1394_add_host(struct hpsb_host *host)
2302 2299
2303 ohci = (struct ti_ohci *)host->hostdata; 2300 ohci = (struct ti_ohci *)host->hostdata;
2304 2301
2305 device_create_drvdata(hpsb_protocol_class, NULL, 2302 device_create(hpsb_protocol_class, NULL,
2306 MKDEV(IEEE1394_MAJOR, 2303 MKDEV(IEEE1394_MAJOR,
2307 IEEE1394_MINOR_BLOCK_DV1394 * 16 + (id<<2)), NULL, 2304 IEEE1394_MINOR_BLOCK_DV1394 * 16 + (id<<2)),
2308 "dv1394-%d", id); 2305 NULL, "dv1394-%d", id);
2309 2306
2310 dv1394_init(ohci, DV1394_NTSC, MODE_RECEIVE); 2307 dv1394_init(ohci, DV1394_NTSC, MODE_RECEIVE);
2311 dv1394_init(ohci, DV1394_NTSC, MODE_TRANSMIT); 2308 dv1394_init(ohci, DV1394_NTSC, MODE_TRANSMIT);
diff --git a/drivers/ieee1394/raw1394.c b/drivers/ieee1394/raw1394.c
index 4bdfff0a9191..bf7e761c12b1 100644
--- a/drivers/ieee1394/raw1394.c
+++ b/drivers/ieee1394/raw1394.c
@@ -3037,10 +3037,10 @@ static int __init init_raw1394(void)
3037 hpsb_register_highlevel(&raw1394_highlevel); 3037 hpsb_register_highlevel(&raw1394_highlevel);
3038 3038
3039 if (IS_ERR 3039 if (IS_ERR
3040 (device_create_drvdata( 3040 (device_create(hpsb_protocol_class, NULL,
3041 hpsb_protocol_class, NULL, 3041 MKDEV(IEEE1394_MAJOR,
3042 MKDEV(IEEE1394_MAJOR, IEEE1394_MINOR_BLOCK_RAW1394 * 16), 3042 IEEE1394_MINOR_BLOCK_RAW1394 * 16),
3043 NULL, RAW1394_DEVICE_NAME))) { 3043 NULL, RAW1394_DEVICE_NAME))) {
3044 ret = -EFAULT; 3044 ret = -EFAULT;
3045 goto out_unreg; 3045 goto out_unreg;
3046 } 3046 }
diff --git a/drivers/ieee1394/video1394.c b/drivers/ieee1394/video1394.c
index fa9e7d8b51fe..679a918a5cc7 100644
--- a/drivers/ieee1394/video1394.c
+++ b/drivers/ieee1394/video1394.c
@@ -1341,9 +1341,8 @@ static void video1394_add_host (struct hpsb_host *host)
1341 hpsb_set_hostinfo_key(&video1394_highlevel, host, ohci->host->id); 1341 hpsb_set_hostinfo_key(&video1394_highlevel, host, ohci->host->id);
1342 1342
1343 minor = IEEE1394_MINOR_BLOCK_VIDEO1394 * 16 + ohci->host->id; 1343 minor = IEEE1394_MINOR_BLOCK_VIDEO1394 * 16 + ohci->host->id;
1344 device_create_drvdata(hpsb_protocol_class, NULL, 1344 device_create(hpsb_protocol_class, NULL, MKDEV(IEEE1394_MAJOR, minor),
1345 MKDEV(IEEE1394_MAJOR, minor), NULL, 1345 NULL, "%s-%d", VIDEO1394_DRIVER_NAME, ohci->host->id);
1346 "%s-%d", VIDEO1394_DRIVER_NAME, ohci->host->id);
1347} 1346}
1348 1347
1349 1348