diff options
Diffstat (limited to 'drivers/gpu/drm/drm_modes.c')
| -rw-r--r-- | drivers/gpu/drm/drm_modes.c | 11 | 
1 files changed, 1 insertions, 10 deletions
| diff --git a/drivers/gpu/drm/drm_modes.c b/drivers/gpu/drm/drm_modes.c index f91e02c87fd8..869ac6f4671e 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)  	if (!nmode)  		return NULL; -	if (drm_mode_object_add(dev, &nmode->base, DRM_MODE_OBJECT_MODE)) { -		kfree(nmode); -		return NULL; -	} -  	return nmode;  }  EXPORT_SYMBOL(drm_mode_create); @@ -92,8 +87,6 @@ void drm_mode_destroy(struct drm_device *dev, struct drm_display_mode *mode)  	if (!mode)  		return; -	drm_mode_object_unregister(dev, &mode->base); -  	kfree(mode);  }  EXPORT_SYMBOL(drm_mode_destroy); @@ -911,11 +904,9 @@ EXPORT_SYMBOL(drm_mode_set_crtcinfo);   */  void drm_mode_copy(struct drm_display_mode *dst, const struct drm_display_mode *src)  { -	int id = dst->base.id;  	struct list_head head = dst->head;  	*dst = *src; -	dst->base.id = id;  	dst->head = head;  }  EXPORT_SYMBOL(drm_mode_copy); @@ -1281,7 +1272,7 @@ const char *drm_get_mode_status_name(enum drm_mode_status status)   * @verbose: be verbose about it   *   * This helper function can be used to prune a display mode list after - * validation has been completed. All modes who's status is not MODE_OK will be + * validation has been completed. All modes whose status is not MODE_OK will be   * removed from the list, and if @verbose the status code and mode name is also   * printed to dmesg.   */ | 
