summaryrefslogtreecommitdiffstats
path: root/drivers/video/omap2/dss/manager-sysfs.c
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2013-05-14 10:53:21 +0300
committerTomi Valkeinen <tomi.valkeinen@ti.com>2013-06-17 14:00:42 +0300
commit7f7cdbd6883fd58cfc4e538d451b455ca849bd63 (patch)
treee6f5a9e4fc767f0bc88ed01fa9c484ed4a0cedec /drivers/video/omap2/dss/manager-sysfs.c
parentbe8e8e1c62678765868c0bc7b8b5209c38af105c (diff)
downloadop-kernel-dev-7f7cdbd6883fd58cfc4e538d451b455ca849bd63.zip
op-kernel-dev-7f7cdbd6883fd58cfc4e538d451b455ca849bd63.tar.gz
OMAPDSS: split overlay manager creation
Split the function that creates overlay manager structs into two: one that creates just the structs, and one that creates the sysfs files for the manager. This will help us use the overlay manager structs with omapdrm in the following patches, while still leaving the sysfs files out. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'drivers/video/omap2/dss/manager-sysfs.c')
-rw-r--r--drivers/video/omap2/dss/manager-sysfs.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/video/omap2/dss/manager-sysfs.c b/drivers/video/omap2/dss/manager-sysfs.c
index 5104681..72784b3 100644
--- a/drivers/video/omap2/dss/manager-sysfs.c
+++ b/drivers/video/omap2/dss/manager-sysfs.c
@@ -511,4 +511,6 @@ void dss_manager_kobj_uninit(struct omap_overlay_manager *mgr)
{
kobject_del(&mgr->kobj);
kobject_put(&mgr->kobj);
+
+ memset(&mgr->kobj, 0, sizeof(mgr->kobj));
}
OpenPOWER on IntegriCloud