aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/omapdrm/dss/display.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/omapdrm/dss/display.c')
-rw-r--r--drivers/gpu/drm/omapdrm/dss/display.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/drivers/gpu/drm/omapdrm/dss/display.c b/drivers/gpu/drm/omapdrm/dss/display.c
index 178d88841e0c..53cb46f6503d 100644
--- a/drivers/gpu/drm/omapdrm/dss/display.c
+++ b/drivers/gpu/drm/omapdrm/dss/display.c
@@ -21,9 +21,6 @@
21#define DSS_SUBSYS_NAME "DISPLAY" 21#define DSS_SUBSYS_NAME "DISPLAY"
22 22
23#include <linux/kernel.h> 23#include <linux/kernel.h>
24#include <linux/module.h>
25#include <linux/jiffies.h>
26#include <linux/platform_device.h>
27#include <linux/of.h> 24#include <linux/of.h>
28 25
29#include "omapdss.h" 26#include "omapdss.h"
@@ -52,24 +49,3 @@ void omapdss_display_init(struct omap_dss_device *dssdev)
52 "display%u", id); 49 "display%u", id);
53} 50}
54EXPORT_SYMBOL_GPL(omapdss_display_init); 51EXPORT_SYMBOL_GPL(omapdss_display_init);
55
56struct omap_dss_device *omap_dss_get_device(struct omap_dss_device *dssdev)
57{
58 if (!try_module_get(dssdev->owner))
59 return NULL;
60
61 if (get_device(dssdev->dev) == NULL) {
62 module_put(dssdev->owner);
63 return NULL;
64 }
65
66 return dssdev;
67}
68EXPORT_SYMBOL(omap_dss_get_device);
69
70void omap_dss_put_device(struct omap_dss_device *dssdev)
71{
72 put_device(dssdev->dev);
73 module_put(dssdev->owner);
74}
75EXPORT_SYMBOL(omap_dss_put_device);