diff options
author | Liu Ying <gnuiyl@gmail.com> | 2016-07-18 03:44:24 -0400 |
---|---|---|
committer | Philipp Zabel <p.zabel@pengutronix.de> | 2016-08-08 05:44:20 -0400 |
commit | 8892cc899e15fb896231539c902b813c3f7ab915 (patch) | |
tree | 45de5c10c2ec683a2d5bed4d20c262699a81a25f | |
parent | 2fd911bc5b5e647902fd319cbf8c75f98555e188 (diff) |
drm/imx: Remove imx_drm_crtc_id()
There is no one calling imx_drm_crtc_id() and it is just a simple
wrapper of drm_crtc_index() without doing any thing fancy - the
drivers may call drm_crtc_index() directly. So, let's remove the
wrapper.
Signed-off-by: Liu Ying <gnuiyl@gmail.com>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
-rw-r--r-- | drivers/gpu/drm/imx/imx-drm-core.c | 6 | ||||
-rw-r--r-- | drivers/gpu/drm/imx/imx-drm.h | 2 |
2 files changed, 0 insertions, 8 deletions
diff --git a/drivers/gpu/drm/imx/imx-drm-core.c b/drivers/gpu/drm/imx/imx-drm-core.c index 1fd1900d1b27..1aefced3a81e 100644 --- a/drivers/gpu/drm/imx/imx-drm-core.c +++ b/drivers/gpu/drm/imx/imx-drm-core.c | |||
@@ -58,12 +58,6 @@ static int legacyfb_depth = 16; | |||
58 | module_param(legacyfb_depth, int, 0444); | 58 | module_param(legacyfb_depth, int, 0444); |
59 | #endif | 59 | #endif |
60 | 60 | ||
61 | unsigned int imx_drm_crtc_id(struct imx_drm_crtc *crtc) | ||
62 | { | ||
63 | return drm_crtc_index(crtc->crtc); | ||
64 | } | ||
65 | EXPORT_SYMBOL_GPL(imx_drm_crtc_id); | ||
66 | |||
67 | static void imx_drm_driver_lastclose(struct drm_device *drm) | 61 | static void imx_drm_driver_lastclose(struct drm_device *drm) |
68 | { | 62 | { |
69 | struct imx_drm_device *imxdrm = drm->dev_private; | 63 | struct imx_drm_device *imxdrm = drm->dev_private; |
diff --git a/drivers/gpu/drm/imx/imx-drm.h b/drivers/gpu/drm/imx/imx-drm.h index 0049b77fcbb0..bdaa381c144b 100644 --- a/drivers/gpu/drm/imx/imx-drm.h +++ b/drivers/gpu/drm/imx/imx-drm.h | |||
@@ -13,8 +13,6 @@ struct drm_plane; | |||
13 | struct imx_drm_crtc; | 13 | struct imx_drm_crtc; |
14 | struct platform_device; | 14 | struct platform_device; |
15 | 15 | ||
16 | unsigned int imx_drm_crtc_id(struct imx_drm_crtc *crtc); | ||
17 | |||
18 | struct imx_crtc_state { | 16 | struct imx_crtc_state { |
19 | struct drm_crtc_state base; | 17 | struct drm_crtc_state base; |
20 | u32 bus_format; | 18 | u32 bus_format; |