Commit ba0c2422 authored by Daniel Vetter's avatar Daniel Vetter

drm/modes: drop return value from drm_display_mode_from_videomode

It never fails and no one ever checked anyway.
Reviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
parent 9d3de138
...@@ -562,7 +562,7 @@ drm_gtf_mode(struct drm_device *dev, int hdisplay, int vdisplay, int vrefresh, ...@@ -562,7 +562,7 @@ drm_gtf_mode(struct drm_device *dev, int hdisplay, int vdisplay, int vrefresh,
EXPORT_SYMBOL(drm_gtf_mode); EXPORT_SYMBOL(drm_gtf_mode);
#ifdef CONFIG_VIDEOMODE_HELPERS #ifdef CONFIG_VIDEOMODE_HELPERS
int drm_display_mode_from_videomode(const struct videomode *vm, void drm_display_mode_from_videomode(const struct videomode *vm,
struct drm_display_mode *dmode) struct drm_display_mode *dmode)
{ {
dmode->hdisplay = vm->hactive; dmode->hdisplay = vm->hactive;
...@@ -593,8 +593,6 @@ int drm_display_mode_from_videomode(const struct videomode *vm, ...@@ -593,8 +593,6 @@ int drm_display_mode_from_videomode(const struct videomode *vm,
if (vm->flags & DISPLAY_FLAGS_DOUBLECLK) if (vm->flags & DISPLAY_FLAGS_DOUBLECLK)
dmode->flags |= DRM_MODE_FLAG_DBLCLK; dmode->flags |= DRM_MODE_FLAG_DBLCLK;
drm_mode_set_name(dmode); drm_mode_set_name(dmode);
return 0;
} }
EXPORT_SYMBOL_GPL(drm_display_mode_from_videomode); EXPORT_SYMBOL_GPL(drm_display_mode_from_videomode);
......
...@@ -188,7 +188,7 @@ struct drm_display_mode *drm_gtf_mode_complex(struct drm_device *dev, ...@@ -188,7 +188,7 @@ struct drm_display_mode *drm_gtf_mode_complex(struct drm_device *dev,
int margins, int margins,
int GTF_M, int GTF_2C, int GTF_M, int GTF_2C,
int GTF_K, int GTF_2J); int GTF_K, int GTF_2J);
int drm_display_mode_from_videomode(const struct videomode *vm, void drm_display_mode_from_videomode(const struct videomode *vm,
struct drm_display_mode *dmode); struct drm_display_mode *dmode);
int of_get_drm_display_mode(struct device_node *np, int of_get_drm_display_mode(struct device_node *np,
struct drm_display_mode *dmode, struct drm_display_mode *dmode,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment