Commit a99ee459 authored by David Herrmann's avatar David Herrmann Committed by Dave Airlie

drm: make drm_get_minor() static

drm_get_minor() is only used in one file. Make it static and add a
kernel-doc comment which documents the current semantics.
Signed-off-by: default avatarDavid Herrmann <dh.herrmann@gmail.com>
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent 4ac387f5
...@@ -255,16 +255,20 @@ int drm_dropmaster_ioctl(struct drm_device *dev, void *data, ...@@ -255,16 +255,20 @@ int drm_dropmaster_ioctl(struct drm_device *dev, void *data,
} }
/** /**
* Get a secondary minor number. * drm_get_minor - Allocate and register new DRM minor
* @dev: DRM device
* @minor: Pointer to where new minor is stored
* @type: Type of minor
* *
* \param dev device data structure * Allocate a new minor of the given type and register it. A pointer to the new
* \param sec-minor structure to hold the assigned minor * minor is returned in @minor.
* \return negative number on failure. * Caller must hold the global DRM mutex.
* *
* Search an empty entry and initialize it to the given parameters. This * RETURNS:
* routines assigns minor numbers to secondary heads of multi-headed cards * 0 on success, negative error code on failure.
*/ */
int drm_get_minor(struct drm_device *dev, struct drm_minor **minor, int type) static int drm_get_minor(struct drm_device *dev, struct drm_minor **minor,
int type)
{ {
struct drm_minor *new_minor; struct drm_minor *new_minor;
int ret; int ret;
...@@ -321,7 +325,6 @@ int drm_get_minor(struct drm_device *dev, struct drm_minor **minor, int type) ...@@ -321,7 +325,6 @@ int drm_get_minor(struct drm_device *dev, struct drm_minor **minor, int type)
*minor = NULL; *minor = NULL;
return ret; return ret;
} }
EXPORT_SYMBOL(drm_get_minor);
/** /**
* drm_unplug_minor - Unplug DRM minor * drm_unplug_minor - Unplug DRM minor
......
...@@ -1630,7 +1630,6 @@ struct drm_device *drm_dev_alloc(struct drm_driver *driver, ...@@ -1630,7 +1630,6 @@ struct drm_device *drm_dev_alloc(struct drm_driver *driver,
void drm_dev_free(struct drm_device *dev); void drm_dev_free(struct drm_device *dev);
int drm_dev_register(struct drm_device *dev, unsigned long flags); int drm_dev_register(struct drm_device *dev, unsigned long flags);
void drm_dev_unregister(struct drm_device *dev); void drm_dev_unregister(struct drm_device *dev);
int drm_get_minor(struct drm_device *dev, struct drm_minor **minor, int type);
/*@}*/ /*@}*/
/* PCI section */ /* PCI section */
......
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