[media] s5p-mfc: Move firmware allocation point to avoid allocation problems
authorKamil Debski <k.debski@samsung.com>
Thu, 3 Jan 2013 14:02:07 +0000 (11:02 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 6 Jan 2013 11:57:57 +0000 (09:57 -0200)
commit2e731e443fcc8e4553201ad0573c1d5571e906ac
tree180458e6f6960f5980738ee5d0817bdae0c44d58
parent4a9c85aa495a35593eb7f3fd3dc259fd020308b4
[media] s5p-mfc: Move firmware allocation point to avoid allocation problems

Move firmware allocation from open to probe to avoid problems
when using CMA for allocation. In certain circumstances CMA may allocate
buffer that is not in the beginning of the MFC memory area.

Signed-off-by: Kamil Debski <k.debski@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/platform/s5p-mfc/s5p_mfc.c
drivers/media/platform/s5p-mfc/s5p_mfc_common.h
drivers/media/platform/s5p-mfc/s5p_mfc_ctrl.c
drivers/media/platform/s5p-mfc/s5p_mfc_ctrl.h