media: bcm2835-unicam: Fix up start/stop api change
authorDom Cobley <popcornmix@gmail.com>
Mon, 24 Oct 2022 12:57:23 +0000 (13:57 +0100)
committerDom Cobley <popcornmix@gmail.com>
Mon, 19 Feb 2024 11:33:24 +0000 (11:33 +0000)
Signed-off-by: Dom Cobley <popcornmix@gmail.com>
drivers/media/platform/bcm2835/bcm2835-unicam.c

index 2cc4c2e..0451aff 100644 (file)
@@ -2524,7 +2524,7 @@ static int unicam_start_streaming(struct vb2_queue *vq, unsigned int count)
                goto err_streaming;
        }
 
-       ret = media_pipeline_start(&node->video_dev.entity, &node->pipe);
+       ret = media_pipeline_start(node->video_dev.entity.pads, &node->pipe);
        if (ret < 0) {
                unicam_err(dev, "Failed to start media pipeline: %d\n", ret);
                goto err_pm_put;
@@ -2618,7 +2618,7 @@ err_vpu_clock:
                unicam_err(dev, "failed to reset the VPU clock\n");
        clk_disable_unprepare(dev->vpu_clock);
 error_pipeline:
-       media_pipeline_stop(&node->video_dev.entity);
+       media_pipeline_stop(node->video_dev.entity.pads);
 err_pm_put:
        unicam_runtime_put(dev);
 err_streaming:
@@ -2646,7 +2646,7 @@ static void unicam_stop_streaming(struct vb2_queue *vq)
 
                unicam_disable(dev);
 
-               media_pipeline_stop(&node->video_dev.entity);
+               media_pipeline_stop(node->video_dev.entity.pads);
 
                if (dev->clocks_enabled) {
                        if (clk_set_min_rate(dev->vpu_clock, 0))