[media] coda: split firmware version check out of coda_hw_init
authorPhilipp Zabel <p.zabel@pengutronix.de>
Fri, 11 Jul 2014 09:36:24 +0000 (06:36 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Tue, 22 Jul 2014 15:02:25 +0000 (12:02 -0300)
commitfe7554e6210090d0d8a8dff6b7f0082fdf1ddbf1
tree3f4ddfa9018d1c75d78001e5e7f069d8c7ceaf97
parent1e17273112d60ca93e1248715039f9bf1aa09733
[media] coda: split firmware version check out of coda_hw_init

This adds a new function coda_check_firmware that does the firmware
version checks so that this can be done only once from coda_probe
instead of every time the runtime pm framework resumes the coda.

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