diff options
Diffstat (limited to 'drivers/ieee1394')
-rw-r--r-- | drivers/ieee1394/dv1394.c | 8 | ||||
-rw-r--r-- | drivers/ieee1394/raw1394.c | 8 | ||||
-rw-r--r-- | drivers/ieee1394/video1394.c | 5 |
3 files changed, 10 insertions, 11 deletions
diff --git a/drivers/ieee1394/dv1394.c b/drivers/ieee1394/dv1394.c index df70f51279d8..2f83543a9dfc 100644 --- a/drivers/ieee1394/dv1394.c +++ b/drivers/ieee1394/dv1394.c | |||
@@ -2296,10 +2296,10 @@ static void dv1394_add_host(struct hpsb_host *host) | |||
2296 | 2296 | ||
2297 | ohci = (struct ti_ohci *)host->hostdata; | 2297 | ohci = (struct ti_ohci *)host->hostdata; |
2298 | 2298 | ||
2299 | device_create_drvdata(hpsb_protocol_class, NULL, | 2299 | device_create(hpsb_protocol_class, NULL, |
2300 | MKDEV(IEEE1394_MAJOR, | 2300 | MKDEV(IEEE1394_MAJOR, |
2301 | IEEE1394_MINOR_BLOCK_DV1394 * 16 + (id<<2)), NULL, | 2301 | IEEE1394_MINOR_BLOCK_DV1394 * 16 + (id<<2)), |
2302 | "dv1394-%d", id); | 2302 | NULL, "dv1394-%d", id); |
2303 | 2303 | ||
2304 | dv1394_init(ohci, DV1394_NTSC, MODE_RECEIVE); | 2304 | dv1394_init(ohci, DV1394_NTSC, MODE_RECEIVE); |
2305 | dv1394_init(ohci, DV1394_NTSC, MODE_TRANSMIT); | 2305 | dv1394_init(ohci, DV1394_NTSC, MODE_TRANSMIT); |
diff --git a/drivers/ieee1394/raw1394.c b/drivers/ieee1394/raw1394.c index 2cf4ae75beca..9f19ac492106 100644 --- a/drivers/ieee1394/raw1394.c +++ b/drivers/ieee1394/raw1394.c | |||
@@ -3034,10 +3034,10 @@ static int __init init_raw1394(void) | |||
3034 | hpsb_register_highlevel(&raw1394_highlevel); | 3034 | hpsb_register_highlevel(&raw1394_highlevel); |
3035 | 3035 | ||
3036 | if (IS_ERR | 3036 | if (IS_ERR |
3037 | (device_create_drvdata( | 3037 | (device_create(hpsb_protocol_class, NULL, |
3038 | hpsb_protocol_class, NULL, | 3038 | MKDEV(IEEE1394_MAJOR, |
3039 | MKDEV(IEEE1394_MAJOR, IEEE1394_MINOR_BLOCK_RAW1394 * 16), | 3039 | IEEE1394_MINOR_BLOCK_RAW1394 * 16), |
3040 | NULL, RAW1394_DEVICE_NAME))) { | 3040 | NULL, RAW1394_DEVICE_NAME))) { |
3041 | ret = -EFAULT; | 3041 | ret = -EFAULT; |
3042 | goto out_unreg; | 3042 | goto out_unreg; |
3043 | } | 3043 | } |
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 | ||