[media] coda: initialize hardware on pm runtime resume only if firmware available
authorPhilipp Zabel <p.zabel@pengutronix.de>
Fri, 18 Jul 2014 10:22:36 +0000 (07:22 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Thu, 21 Aug 2014 20:25:18 +0000 (15:25 -0500)
commit65919e6baa4e6e193dd7e4aa4cfd94b9d69e367e
treed3e32f372b10575fb401d9bdc42184f39dde3385
parentae5abd2561b40a1f046088cd30b900ccde63fbc5
[media] coda: initialize hardware on pm runtime resume only if firmware available

If no firmware was found and the coda module is unloaded, coda_runtime_resume
will be called without an allocated code buffer. Do not call coda_hw_init in
this case.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Kamil Debski <k.debski@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/platform/coda.c