[media] coda: Fix build due to iram.h rename
authorSascha Hauer <s.hauer@pengutronix.de>
Mon, 7 Jan 2013 09:57:14 +0000 (10:57 +0100)
committerSascha Hauer <s.hauer@pengutronix.de>
Tue, 8 Jan 2013 08:44:06 +0000 (09:44 +0100)
commite909c682d04e55e77a3c9d158e7dc36027195493
treeb90ec2ea72c088f60d6c927696fb7a44afe01588
parentd1c3ed669a2d452cacfb48c2d171a1f364dae2ed
[media] coda: Fix build due to iram.h rename

commit c045e3f13 (ARM: imx: include iram.h rather than mach/iram.h) changed the
location of iram.h, which causes the following build error when building the coda
driver:

drivers/media/platform/coda.c:27:23: error: mach/iram.h: No such file or directory
drivers/media/platform/coda.c: In function 'coda_probe':
drivers/media/platform/coda.c:2000: error: implicit declaration of function 'iram_alloc'
drivers/media/platform/coda.c:2001: warning: assignment makes pointer from integer without a cast
drivers/media/platform/coda.c: In function 'coda_remove':
drivers/media/platform/coda.c:2024: error: implicit declaration of function 'iram_free'

Since the content of iram.h is not imx specific, move it to
include/linux/platform_data/imx-iram.h instead. This is an intermediate solution
until the i.MX iram allocator is converted to the generic SRAM allocator.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Acked-by: Mauro Carvalho Chehab <mchehab@redhat.com>
arch/arm/mach-imx/iram_alloc.c
drivers/media/platform/coda.c
include/linux/platform_data/imx-iram.h [moved from arch/arm/mach-imx/iram.h with 100% similarity]