diff options
author | Thierry Reding <treding@nvidia.com> | 2014-05-19 07:39:07 -0400 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2014-06-05 17:14:38 -0400 |
commit | c6a1af8a1621913e2658eaff419bab7028b2c42c (patch) | |
tree | 2f50b904d0eed18320c56d81e0338a789fcd8708 /drivers/gpu/drm/drm_platform.c | |
parent | ca8e2ad71013049bc88a10b11d83712bfe56cdd4 (diff) |
drm: Add device registration documentation
Describe how devices are registered using the drm_*_init() functions.
Adding this to docbook requires a largish set of changes to the comments
in drm_{pci,usb,platform}.c since they are doxygen-style rather than
proper kernel-doc and therefore mess with the docbook generation.
While at it, mark usage of drm_put_dev() as discouraged in favour of
calling drm_dev_unregister() and drm_dev_unref() directly.
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers/gpu/drm/drm_platform.c')
-rw-r--r-- | drivers/gpu/drm/drm_platform.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/drivers/gpu/drm/drm_platform.c b/drivers/gpu/drm/drm_platform.c index 234e0bc1ae51..d5b76f148c12 100644 --- a/drivers/gpu/drm/drm_platform.c +++ b/drivers/gpu/drm/drm_platform.c | |||
@@ -106,17 +106,16 @@ static struct drm_bus drm_platform_bus = { | |||
106 | }; | 106 | }; |
107 | 107 | ||
108 | /** | 108 | /** |
109 | * Platform device initialization. Called direct from modules. | 109 | * drm_platform_init - Register a platform device with the DRM subsystem |
110 | * @driver: DRM device driver | ||
111 | * @platform_device: platform device to register | ||
110 | * | 112 | * |
111 | * \return zero on success or a negative number on failure. | 113 | * Registers the specified DRM device driver and platform device with the DRM |
112 | * | 114 | * subsystem, initializing a drm_device structure and calling the driver's |
113 | * Initializes a drm_device structures,registering the | 115 | * .load() function. |
114 | * stubs | ||
115 | * | 116 | * |
116 | * Expands the \c DRIVER_PREINIT and \c DRIVER_POST_INIT macros before and | 117 | * Return: 0 on success or a negative error code on failure. |
117 | * after the initialization for driver customization. | ||
118 | */ | 118 | */ |
119 | |||
120 | int drm_platform_init(struct drm_driver *driver, struct platform_device *platform_device) | 119 | int drm_platform_init(struct drm_driver *driver, struct platform_device *platform_device) |
121 | { | 120 | { |
122 | DRM_DEBUG("\n"); | 121 | DRM_DEBUG("\n"); |