[media] exynos4-is: Drop drvdata handling in fimc-lite for non-dt platforms
authorSylwester Nawrocki <s.nawrocki@samsung.com>
Tue, 11 Jun 2013 13:44:38 +0000 (10:44 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 28 Jun 2013 18:13:11 +0000 (15:13 -0300)
The FIMC-LITE IP block is available only on platforms instantiated
from device tree.

Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/platform/exynos4-is/fimc-lite.c
drivers/media/platform/exynos4-is/fimc-lite.h

index 3f76f8abc4b31ad2f3997f58d0d37781566c4d91..00c525c377d8dcd31e2cc45740f5aaf53668aae9 100644 (file)
@@ -1449,9 +1449,6 @@ static int fimc_lite_probe(struct platform_device *pdev)
                if (of_id)
                        drv_data = (struct flite_drvdata *)of_id->data;
                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)
index c7aa084778308f09556baeb59898edb35ff4d263..4b1068425dad78cd5a25d26083747f016206be42 100644 (file)
@@ -56,9 +56,6 @@ struct flite_drvdata {
        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 {
        unsigned int data_overflow;
 };