OMAPDSS: remove L4_EXAMPLE code
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Mon, 31 Oct 2011 11:47:30 +0000 (13:47 +0200)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 2 Dec 2011 06:54:21 +0000 (08:54 +0200)
Some old example code has been left lying around. Remove the example
code.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/omap2/dss/dss.h
drivers/video/omap2/dss/overlay.c

index 3310f10dc16165e06179a0be658f96ddd61b3013..7d2b6dd18e17077df51b82422bb36a2aaf709a7c 100644 (file)
@@ -192,9 +192,6 @@ void dss_init_overlays(struct platform_device *pdev);
 void dss_uninit_overlays(struct platform_device *pdev);
 int dss_check_overlay(struct omap_overlay *ovl, struct omap_dss_device *dssdev);
 void dss_overlay_setup_dispc_manager(struct omap_overlay_manager *mgr);
-#ifdef L4_EXAMPLE
-void dss_overlay_setup_l4_manager(struct omap_overlay_manager *mgr);
-#endif
 void dss_recheck_connections(struct omap_dss_device *dssdev, bool force);
 
 /* DSS */
index ab8e40e48759969671bc6025a4ef610ef3f61272..d15b826bf37f13a31fd6d0bddc3c35026543b77b 100644 (file)
@@ -641,15 +641,6 @@ void dss_overlay_setup_dispc_manager(struct omap_overlay_manager *mgr)
        mgr->overlays = dispc_overlays;
 }
 
-#ifdef L4_EXAMPLE
-static struct omap_overlay *l4_overlays[1];
-void dss_overlay_setup_l4_manager(struct omap_overlay_manager *mgr)
-{
-       mgr->num_overlays = 1;
-       mgr->overlays = l4_overlays;
-}
-#endif
-
 void dss_init_overlays(struct platform_device *pdev)
 {
        int i, r;
@@ -716,33 +707,6 @@ void dss_init_overlays(struct platform_device *pdev)
 
                dispc_overlays[i] = ovl;
        }
-
-#ifdef L4_EXAMPLE
-       {
-               struct omap_overlay *ovl;
-               ovl = kzalloc(sizeof(*ovl), GFP_KERNEL);
-
-               BUG_ON(ovl == NULL);
-
-               ovl->name = "l4";
-               ovl->supported_modes = OMAP_DSS_COLOR_RGB24U;
-
-               ovl->set_manager = &omap_dss_set_manager;
-               ovl->unset_manager = &omap_dss_unset_manager;
-               ovl->set_overlay_info = &dss_ovl_set_overlay_info;
-               ovl->get_overlay_info = &dss_ovl_get_overlay_info;
-
-               omap_dss_add_overlay(ovl);
-
-               r = kobject_init_and_add(&ovl->kobj, &overlay_ktype,
-                               &pdev->dev.kobj, "overlayl4");
-
-               if (r)
-                       DSSERR("failed to create sysfs file\n");
-
-               l4_overlays[0] = ovl;
-       }
-#endif
 }
 
 /* connect overlays to the new device, if not already connected. if force