diff --git a/drivers/media/platform/coda.c b/drivers/media/platform/coda.c index ec82dec04e31..75bdac0d3b07 100644 --- a/drivers/media/platform/coda.c +++ b/drivers/media/platform/coda.c @@ -3903,7 +3903,7 @@ static int coda_runtime_resume(struct device *dev) struct coda_dev *cdev = dev_get_drvdata(dev); int ret = 0; - if (dev->pm_domain) { + if (dev->pm_domain && cdev->codebuf.vaddr) { ret = coda_hw_init(cdev); if (ret) v4l2_err(&cdev->v4l2_dev, "HW initialization failed\n");