diff options
Diffstat (limited to 'drivers/gpu/drm/sti/sti_hda.c')
-rw-r--r-- | drivers/gpu/drm/sti/sti_hda.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/gpu/drm/sti/sti_hda.c b/drivers/gpu/drm/sti/sti_hda.c index 598cd78b0b16..d735daccd458 100644 --- a/drivers/gpu/drm/sti/sti_hda.c +++ b/drivers/gpu/drm/sti/sti_hda.c | |||
@@ -589,7 +589,8 @@ struct drm_encoder *sti_hda_best_encoder(struct drm_connector *connector) | |||
589 | return hda_connector->encoder; | 589 | return hda_connector->encoder; |
590 | } | 590 | } |
591 | 591 | ||
592 | static struct drm_connector_helper_funcs sti_hda_connector_helper_funcs = { | 592 | static const |
593 | struct drm_connector_helper_funcs sti_hda_connector_helper_funcs = { | ||
593 | .get_modes = sti_hda_connector_get_modes, | 594 | .get_modes = sti_hda_connector_get_modes, |
594 | .mode_valid = sti_hda_connector_mode_valid, | 595 | .mode_valid = sti_hda_connector_mode_valid, |
595 | .best_encoder = sti_hda_best_encoder, | 596 | .best_encoder = sti_hda_best_encoder, |
@@ -611,7 +612,7 @@ static void sti_hda_connector_destroy(struct drm_connector *connector) | |||
611 | kfree(hda_connector); | 612 | kfree(hda_connector); |
612 | } | 613 | } |
613 | 614 | ||
614 | static struct drm_connector_funcs sti_hda_connector_funcs = { | 615 | static const struct drm_connector_funcs sti_hda_connector_funcs = { |
615 | .dpms = drm_atomic_helper_connector_dpms, | 616 | .dpms = drm_atomic_helper_connector_dpms, |
616 | .fill_modes = drm_helper_probe_single_connector_modes, | 617 | .fill_modes = drm_helper_probe_single_connector_modes, |
617 | .detect = sti_hda_connector_detect, | 618 | .detect = sti_hda_connector_detect, |
@@ -784,8 +785,6 @@ struct platform_driver sti_hda_driver = { | |||
784 | .remove = sti_hda_remove, | 785 | .remove = sti_hda_remove, |
785 | }; | 786 | }; |
786 | 787 | ||
787 | module_platform_driver(sti_hda_driver); | ||
788 | |||
789 | MODULE_AUTHOR("Benjamin Gaignard <benjamin.gaignard@st.com>"); | 788 | MODULE_AUTHOR("Benjamin Gaignard <benjamin.gaignard@st.com>"); |
790 | MODULE_DESCRIPTION("STMicroelectronics SoC DRM driver"); | 789 | MODULE_DESCRIPTION("STMicroelectronics SoC DRM driver"); |
791 | MODULE_LICENSE("GPL"); | 790 | MODULE_LICENSE("GPL"); |