diff options
Diffstat (limited to 'drivers/media/video/cx18/cx18-driver.c')
-rw-r--r-- | drivers/media/video/cx18/cx18-driver.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/media/video/cx18/cx18-driver.c b/drivers/media/video/cx18/cx18-driver.c index 8ef11d578b8d..434cc7fdee36 100644 --- a/drivers/media/video/cx18/cx18-driver.c +++ b/drivers/media/video/cx18/cx18-driver.c | |||
@@ -440,6 +440,8 @@ done: | |||
440 | */ | 440 | */ |
441 | static int __devinit cx18_init_struct1(struct cx18 *cx) | 441 | static int __devinit cx18_init_struct1(struct cx18 *cx) |
442 | { | 442 | { |
443 | int i; | ||
444 | |||
443 | cx->base_addr = pci_resource_start(cx->dev, 0); | 445 | cx->base_addr = pci_resource_start(cx->dev, 0); |
444 | 446 | ||
445 | mutex_init(&cx->serialize_lock); | 447 | mutex_init(&cx->serialize_lock); |
@@ -451,7 +453,11 @@ static int __devinit cx18_init_struct1(struct cx18 *cx) | |||
451 | 453 | ||
452 | spin_lock_init(&cx->lock); | 454 | spin_lock_init(&cx->lock); |
453 | 455 | ||
454 | INIT_WORK(&cx->work, cx18_work_handler); | 456 | for (i = 0; i < CX18_MAX_EPU_WORK_ORDERS; i++) { |
457 | cx->epu_work_order[i].cx = cx; | ||
458 | cx->epu_work_order[i].str = cx->epu_debug_str; | ||
459 | INIT_WORK(&cx->epu_work_order[i].work, cx18_epu_work_handler); | ||
460 | } | ||
455 | 461 | ||
456 | /* start counting open_id at 1 */ | 462 | /* start counting open_id at 1 */ |
457 | cx->open_id = 1; | 463 | cx->open_id = 1; |