[media] media: coda: Fix DT driver data pointer for i.MX27
authorAlexander Shiyan <shc_work@mail.ru>
Sat, 15 Jun 2013 11:09:57 +0000 (08:09 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Tue, 3 Sep 2013 12:24:16 +0000 (09:24 -0300)
The data pointer should point to DT data, and not to the ID
array.

Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Kamil Debski <k.debski@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Cc: stable@vger.kernel.org
drivers/media/platform/coda.c

index 999f9dc0e106ab8f4fb79220008f5521a573ac79..449d2fec9e87454aa85f34a0642aa61919d376a5 100644 (file)
@@ -3109,7 +3109,7 @@ MODULE_DEVICE_TABLE(platform, coda_platform_ids);
 
 #ifdef CONFIG_OF
 static const struct of_device_id coda_dt_ids[] = {
-       { .compatible = "fsl,imx27-vpu", .data = &coda_platform_ids[CODA_IMX27] },
+       { .compatible = "fsl,imx27-vpu", .data = &coda_devdata[CODA_IMX27] },
        { .compatible = "fsl,imx53-vpu", .data = &coda_devdata[CODA_IMX53] },
        { /* sentinel */ }
 };