aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/drm_client.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/drm_client.c')
-rw-r--r--drivers/gpu/drm/drm_client.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/drivers/gpu/drm/drm_client.c b/drivers/gpu/drm/drm_client.c
index 9b2bd28dde0a..f20d1dda3961 100644
--- a/drivers/gpu/drm/drm_client.c
+++ b/drivers/gpu/drm/drm_client.c
@@ -69,7 +69,8 @@ EXPORT_SYMBOL(drm_client_close);
69 * @name: Client name 69 * @name: Client name
70 * @funcs: DRM client functions (optional) 70 * @funcs: DRM client functions (optional)
71 * 71 *
72 * This initialises the client and opens a &drm_file. Use drm_client_add() to complete the process. 72 * This initialises the client and opens a &drm_file.
73 * Use drm_client_register() to complete the process.
73 * The caller needs to hold a reference on @dev before calling this function. 74 * The caller needs to hold a reference on @dev before calling this function.
74 * The client is freed when the &drm_device is unregistered. See drm_client_release(). 75 * The client is freed when the &drm_device is unregistered. See drm_client_release().
75 * 76 *
@@ -108,16 +109,16 @@ err_put_module:
108EXPORT_SYMBOL(drm_client_init); 109EXPORT_SYMBOL(drm_client_init);
109 110
110/** 111/**
111 * drm_client_add - Add client to the device list 112 * drm_client_register - Register client
112 * @client: DRM client 113 * @client: DRM client
113 * 114 *
114 * Add the client to the &drm_device client list to activate its callbacks. 115 * Add the client to the &drm_device client list to activate its callbacks.
115 * @client must be initialized by a call to drm_client_init(). After 116 * @client must be initialized by a call to drm_client_init(). After
116 * drm_client_add() it is no longer permissible to call drm_client_release() 117 * drm_client_register() it is no longer permissible to call drm_client_release()
117 * directly (outside the unregister callback), instead cleanup will happen 118 * directly (outside the unregister callback), instead cleanup will happen
118 * automatically on driver unload. 119 * automatically on driver unload.
119 */ 120 */
120void drm_client_add(struct drm_client_dev *client) 121void drm_client_register(struct drm_client_dev *client)
121{ 122{
122 struct drm_device *dev = client->dev; 123 struct drm_device *dev = client->dev;
123 124
@@ -125,7 +126,7 @@ void drm_client_add(struct drm_client_dev *client)
125 list_add(&client->list, &dev->clientlist); 126 list_add(&client->list, &dev->clientlist);
126 mutex_unlock(&dev->clientlist_mutex); 127 mutex_unlock(&dev->clientlist_mutex);
127} 128}
128EXPORT_SYMBOL(drm_client_add); 129EXPORT_SYMBOL(drm_client_register);
129 130
130/** 131/**
131 * drm_client_release - Release DRM client resources 132 * drm_client_release - Release DRM client resources