Commit 47d1f33f authored by Sylwester Nawrocki's avatar Sylwester Nawrocki Committed by Mauro Carvalho Chehab

[media] exynos4-is: Drop drvdata handling in fimc-lite for non-dt platforms

The FIMC-LITE IP block is available only on platforms instantiated
from device tree.
Signed-off-by: default avatarSylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: default avatarKyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent f042ff65
...@@ -1449,9 +1449,6 @@ static int fimc_lite_probe(struct platform_device *pdev) ...@@ -1449,9 +1449,6 @@ static int fimc_lite_probe(struct platform_device *pdev)
if (of_id) if (of_id)
drv_data = (struct flite_drvdata *)of_id->data; drv_data = (struct flite_drvdata *)of_id->data;
fimc->index = of_alias_get_id(dev->of_node, "fimc-lite"); fimc->index = of_alias_get_id(dev->of_node, "fimc-lite");
} else {
drv_data = fimc_lite_get_drvdata(pdev);
fimc->index = pdev->id;
} }
if (!drv_data || fimc->index < 0 || fimc->index >= FIMC_LITE_MAX_DEVS) if (!drv_data || fimc->index < 0 || fimc->index >= FIMC_LITE_MAX_DEVS)
......
...@@ -56,9 +56,6 @@ struct flite_drvdata { ...@@ -56,9 +56,6 @@ struct flite_drvdata {
unsigned short out_hor_offs_align; unsigned short out_hor_offs_align;
}; };
#define fimc_lite_get_drvdata(_pdev) \
((struct flite_drvdata *) platform_get_device_id(_pdev)->driver_data)
struct fimc_lite_events { struct fimc_lite_events {
unsigned int data_overflow; unsigned int data_overflow;
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment