]> git.karo-electronics.de Git - linux-beck.git/commitdiff
[media] coda: do not use v4l2_dev in coda_timeout
authorPhilipp Zabel <p.zabel@pengutronix.de>
Tue, 21 May 2013 13:32:42 +0000 (10:32 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 27 May 2013 12:33:20 +0000 (09:33 -0300)
The timeout delayed work might be scheduled even after the v4l2 device is
released.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/platform/coda.c

index aebd17251ba22fb092bc0c8a6c3246c67b8eab5f..efb42b2913ca93e5ba87381ef3b0134f854fa1e1 100644 (file)
@@ -1676,7 +1676,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) {