|
@@ -1577,7 +1577,7 @@ static int vpif_remove(struct platform_device *device)
|
|
for (i = 0; i < VPIF_CAPTURE_MAX_DEVICES; i++) {
|
|
for (i = 0; i < VPIF_CAPTURE_MAX_DEVICES; i++) {
|
|
/* Get the pointer to the channel object */
|
|
/* Get the pointer to the channel object */
|
|
ch = vpif_obj.dev[i];
|
|
ch = vpif_obj.dev[i];
|
|
- common = &ch->common[i];
|
|
|
|
|
|
+ common = &ch->common[VPIF_VIDEO_INDEX];
|
|
vb2_dma_contig_cleanup_ctx(common->alloc_ctx);
|
|
vb2_dma_contig_cleanup_ctx(common->alloc_ctx);
|
|
/* Unregister video device */
|
|
/* Unregister video device */
|
|
video_unregister_device(ch->video_dev);
|
|
video_unregister_device(ch->video_dev);
|