diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2018-03-01 19:43:45 -0500 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2018-09-03 09:13:26 -0400 |
commit | c1dfe721e0966947019c43b65f2837c591fdcb3c (patch) | |
tree | 8ce6d3643384f63f717b66bf36eb2bce92d32929 /drivers/gpu/drm/omapdrm/dss/display.c | |
parent | 67822ae11971c664f5d28d7914b4b00cff07a9fd (diff) |
drm/omap: dss: Move and rename omap_dss_(get|put)_device()
The functions operate on any omap_dss_device, move them from display.c
to base.c. While at it rename them to match the naming of the other
functions operating on struct omap_dss_device.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
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); | ||