aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/drm_modes.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/drm_modes.c')
-rw-r--r--drivers/gpu/drm/drm_modes.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/drivers/gpu/drm/drm_modes.c b/drivers/gpu/drm/drm_modes.c
index 24a750436559..adce9a26bac9 100644
--- a/drivers/gpu/drm/drm_modes.c
+++ b/drivers/gpu/drm/drm_modes.c
@@ -71,11 +71,6 @@ struct drm_display_mode *drm_mode_create(struct drm_device *dev)
71 if (!nmode) 71 if (!nmode)
72 return NULL; 72 return NULL;
73 73
74 if (drm_mode_object_add(dev, &nmode->base, DRM_MODE_OBJECT_MODE)) {
75 kfree(nmode);
76 return NULL;
77 }
78
79 return nmode; 74 return nmode;
80} 75}
81EXPORT_SYMBOL(drm_mode_create); 76EXPORT_SYMBOL(drm_mode_create);
@@ -92,8 +87,6 @@ void drm_mode_destroy(struct drm_device *dev, struct drm_display_mode *mode)
92 if (!mode) 87 if (!mode)
93 return; 88 return;
94 89
95 drm_mode_object_unregister(dev, &mode->base);
96
97 kfree(mode); 90 kfree(mode);
98} 91}
99EXPORT_SYMBOL(drm_mode_destroy); 92EXPORT_SYMBOL(drm_mode_destroy);
@@ -911,11 +904,9 @@ EXPORT_SYMBOL(drm_mode_set_crtcinfo);
911 */ 904 */
912void drm_mode_copy(struct drm_display_mode *dst, const struct drm_display_mode *src) 905void drm_mode_copy(struct drm_display_mode *dst, const struct drm_display_mode *src)
913{ 906{
914 int id = dst->base.id;
915 struct list_head head = dst->head; 907 struct list_head head = dst->head;
916 908
917 *dst = *src; 909 *dst = *src;
918 dst->base.id = id;
919 dst->head = head; 910 dst->head = head;
920} 911}
921EXPORT_SYMBOL(drm_mode_copy); 912EXPORT_SYMBOL(drm_mode_copy);