diff options
author | Dave Airlie <airlied@redhat.com> | 2015-05-15 01:24:41 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2015-05-15 01:24:41 -0400 |
commit | dde10068e1a4798fa44e68a5d08b5dfe3602cbba (patch) | |
tree | 5afccf8d62b853ab8aa7b31641ebaf16fd8afe0c | |
parent | 72a81683a8feac3c67bac24dfd88f81bac077be0 (diff) | |
parent | 38bf3aee3ec7b5b264b701da14114a618cddd1a1 (diff) |
Merge branch 'drm-armada-devel' of git://ftp.arm.linux.org.uk/~rmk/linux-arm into drm-next
some minor cleanups
* 'drm-armada-devel' of git://ftp.arm.linux.org.uk/~rmk/linux-arm:
drm/armada: armada_drv: Remove unused function
drm/armada: armada_output: Remove some unused functions
-rw-r--r-- | drivers/gpu/drm/armada/armada_drm.h | 2 | ||||
-rw-r--r-- | drivers/gpu/drm/armada/armada_drv.c | 10 | ||||
-rw-r--r-- | drivers/gpu/drm/armada/armada_output.c | 16 | ||||
-rw-r--r-- | drivers/gpu/drm/armada/armada_output.h | 6 |
4 files changed, 0 insertions, 34 deletions
diff --git a/drivers/gpu/drm/armada/armada_drm.h b/drivers/gpu/drm/armada/armada_drm.h index ea63c6c7c66f..5f6aef0dca59 100644 --- a/drivers/gpu/drm/armada/armada_drm.h +++ b/drivers/gpu/drm/armada/armada_drm.h | |||
@@ -46,8 +46,6 @@ void armada_drm_vbl_event_add(struct armada_crtc *, | |||
46 | struct armada_vbl_event *); | 46 | struct armada_vbl_event *); |
47 | void armada_drm_vbl_event_remove(struct armada_crtc *, | 47 | void armada_drm_vbl_event_remove(struct armada_crtc *, |
48 | struct armada_vbl_event *); | 48 | struct armada_vbl_event *); |
49 | void armada_drm_vbl_event_remove_unlocked(struct armada_crtc *, | ||
50 | struct armada_vbl_event *); | ||
51 | #define armada_drm_vbl_event_init(_e, _f, _d) do { \ | 49 | #define armada_drm_vbl_event_init(_e, _f, _d) do { \ |
52 | struct armada_vbl_event *__e = _e; \ | 50 | struct armada_vbl_event *__e = _e; \ |
53 | INIT_LIST_HEAD(&__e->node); \ | 51 | INIT_LIST_HEAD(&__e->node); \ |
diff --git a/drivers/gpu/drm/armada/armada_drv.c b/drivers/gpu/drm/armada/armada_drv.c index b01420c84864..225034b74cda 100644 --- a/drivers/gpu/drm/armada/armada_drv.c +++ b/drivers/gpu/drm/armada/armada_drv.c | |||
@@ -253,16 +253,6 @@ void armada_drm_vbl_event_remove(struct armada_crtc *dcrtc, | |||
253 | } | 253 | } |
254 | } | 254 | } |
255 | 255 | ||
256 | void armada_drm_vbl_event_remove_unlocked(struct armada_crtc *dcrtc, | ||
257 | struct armada_vbl_event *evt) | ||
258 | { | ||
259 | unsigned long flags; | ||
260 | |||
261 | spin_lock_irqsave(&dcrtc->irq_lock, flags); | ||
262 | armada_drm_vbl_event_remove(dcrtc, evt); | ||
263 | spin_unlock_irqrestore(&dcrtc->irq_lock, flags); | ||
264 | } | ||
265 | |||
266 | /* These are called under the vbl_lock. */ | 256 | /* These are called under the vbl_lock. */ |
267 | static int armada_drm_enable_vblank(struct drm_device *dev, int crtc) | 257 | static int armada_drm_enable_vblank(struct drm_device *dev, int crtc) |
268 | { | 258 | { |
diff --git a/drivers/gpu/drm/armada/armada_output.c b/drivers/gpu/drm/armada/armada_output.c index abbc309fe539..5a9823178291 100644 --- a/drivers/gpu/drm/armada/armada_output.c +++ b/drivers/gpu/drm/armada/armada_output.c | |||
@@ -72,22 +72,6 @@ static const struct drm_connector_funcs armada_drm_conn_funcs = { | |||
72 | .set_property = armada_drm_connector_set_property, | 72 | .set_property = armada_drm_connector_set_property, |
73 | }; | 73 | }; |
74 | 74 | ||
75 | void armada_drm_encoder_prepare(struct drm_encoder *encoder) | ||
76 | { | ||
77 | encoder_helper_funcs(encoder)->dpms(encoder, DRM_MODE_DPMS_OFF); | ||
78 | } | ||
79 | |||
80 | void armada_drm_encoder_commit(struct drm_encoder *encoder) | ||
81 | { | ||
82 | encoder_helper_funcs(encoder)->dpms(encoder, DRM_MODE_DPMS_ON); | ||
83 | } | ||
84 | |||
85 | bool armada_drm_encoder_mode_fixup(struct drm_encoder *encoder, | ||
86 | const struct drm_display_mode *mode, struct drm_display_mode *adjusted) | ||
87 | { | ||
88 | return true; | ||
89 | } | ||
90 | |||
91 | /* Shouldn't this be a generic helper function? */ | 75 | /* Shouldn't this be a generic helper function? */ |
92 | int armada_drm_slave_encoder_mode_valid(struct drm_connector *conn, | 76 | int armada_drm_slave_encoder_mode_valid(struct drm_connector *conn, |
93 | struct drm_display_mode *mode) | 77 | struct drm_display_mode *mode) |
diff --git a/drivers/gpu/drm/armada/armada_output.h b/drivers/gpu/drm/armada/armada_output.h index 3c4023e142d0..f448785753e8 100644 --- a/drivers/gpu/drm/armada/armada_output.h +++ b/drivers/gpu/drm/armada/armada_output.h | |||
@@ -21,12 +21,6 @@ struct armada_output_type { | |||
21 | 21 | ||
22 | struct drm_encoder *armada_drm_connector_encoder(struct drm_connector *conn); | 22 | struct drm_encoder *armada_drm_connector_encoder(struct drm_connector *conn); |
23 | 23 | ||
24 | void armada_drm_encoder_prepare(struct drm_encoder *encoder); | ||
25 | void armada_drm_encoder_commit(struct drm_encoder *encoder); | ||
26 | |||
27 | bool armada_drm_encoder_mode_fixup(struct drm_encoder *encoder, | ||
28 | const struct drm_display_mode *mode, struct drm_display_mode *adj); | ||
29 | |||
30 | int armada_drm_slave_encoder_mode_valid(struct drm_connector *conn, | 24 | int armada_drm_slave_encoder_mode_valid(struct drm_connector *conn, |
31 | struct drm_display_mode *mode); | 25 | struct drm_display_mode *mode); |
32 | 26 | ||