diff options
Diffstat (limited to 'drivers/gpu/drm/omapdrm/dss/display.c')
-rw-r--r-- | drivers/gpu/drm/omapdrm/dss/display.c | 24 |
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 | } |
54 | EXPORT_SYMBOL_GPL(omapdss_display_init); | 51 | EXPORT_SYMBOL_GPL(omapdss_display_init); |
55 | |||
56 | struct 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 | } | ||
68 | EXPORT_SYMBOL(omap_dss_get_device); | ||
69 | |||
70 | void omap_dss_put_device(struct omap_dss_device *dssdev) | ||
71 | { | ||
72 | put_device(dssdev->dev); | ||
73 | module_put(dssdev->owner); | ||
74 | } | ||
75 | EXPORT_SYMBOL(omap_dss_put_device); | ||