The timeout delayed work might be scheduled even after the v4l2 device is
released.

Signed-off-by: Philipp Zabel <p.za...@pengutronix.de>
---
 drivers/media/platform/coda.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/media/platform/coda.c b/drivers/media/platform/coda.c
index 037e2bc..22d1b1b 100644
--- a/drivers/media/platform/coda.c
+++ b/drivers/media/platform/coda.c
@@ -1685,7 +1685,7 @@ static void coda_timeout(struct work_struct *work)
 
        complete(&dev->done);
 
-       v4l2_err(&dev->v4l2_dev, "CODA PIC_RUN timeout, stopping all 
streams\n");
+       dev_err(&dev->plat_dev->dev, "CODA PIC_RUN timeout, stopping all 
streams\n");
 
        mutex_lock(&dev->dev_mutex);
        list_for_each_entry(ctx, &dev->instances, list) {
-- 
1.8.2.rc2

--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to