Commit 86f422d5 authored by Lespiau, Damien's avatar Lespiau, Damien Committed by Dave Airlie

drm: Make drm_mode_remove() static

It's only used in drm_crtc.c.
Signed-off-by: default avatarDamien Lespiau <damien.lespiau@intel.com>
Reviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent 67587e86
...@@ -686,20 +686,19 @@ void drm_mode_probed_add(struct drm_connector *connector, ...@@ -686,20 +686,19 @@ void drm_mode_probed_add(struct drm_connector *connector,
} }
EXPORT_SYMBOL(drm_mode_probed_add); EXPORT_SYMBOL(drm_mode_probed_add);
/** /*
* drm_mode_remove - remove and free a mode * drm_mode_remove - remove and free a mode
* @connector: connector list to modify * @connector: connector list to modify
* @mode: mode to remove * @mode: mode to remove
* *
* Remove @mode from @connector's mode list, then free it. * Remove @mode from @connector's mode list, then free it.
*/ */
void drm_mode_remove(struct drm_connector *connector, static void drm_mode_remove(struct drm_connector *connector,
struct drm_display_mode *mode) struct drm_display_mode *mode)
{ {
list_del(&mode->head); list_del(&mode->head);
drm_mode_destroy(connector->dev, mode); drm_mode_destroy(connector->dev, mode);
} }
EXPORT_SYMBOL(drm_mode_remove);
/** /**
* drm_connector_init - Init a preallocated connector * drm_connector_init - Init a preallocated connector
......
...@@ -910,7 +910,6 @@ extern struct edid *drm_get_edid(struct drm_connector *connector, ...@@ -910,7 +910,6 @@ extern struct edid *drm_get_edid(struct drm_connector *connector,
struct i2c_adapter *adapter); struct i2c_adapter *adapter);
extern int drm_add_edid_modes(struct drm_connector *connector, struct edid *edid); extern int drm_add_edid_modes(struct drm_connector *connector, struct edid *edid);
extern void drm_mode_probed_add(struct drm_connector *connector, struct drm_display_mode *mode); extern void drm_mode_probed_add(struct drm_connector *connector, struct drm_display_mode *mode);
extern void drm_mode_remove(struct drm_connector *connector, struct drm_display_mode *mode);
extern void drm_mode_copy(struct drm_display_mode *dst, const struct drm_display_mode *src); extern void drm_mode_copy(struct drm_display_mode *dst, const struct drm_display_mode *src);
extern struct drm_display_mode *drm_mode_duplicate(struct drm_device *dev, extern struct drm_display_mode *drm_mode_duplicate(struct drm_device *dev,
const struct drm_display_mode *mode); const struct drm_display_mode *mode);
......
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