diff options
Diffstat (limited to 'drivers/gpu/drm/drm_drv.c')
-rw-r--r-- | drivers/gpu/drm/drm_drv.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/gpu/drm/drm_drv.c b/drivers/gpu/drm/drm_drv.c index 9d2b4b630601..135c746dc9c7 100644 --- a/drivers/gpu/drm/drm_drv.c +++ b/drivers/gpu/drm/drm_drv.c | |||
@@ -298,7 +298,7 @@ void drm_minor_release(struct drm_minor *minor) | |||
298 | /** | 298 | /** |
299 | * DOC: driver instance overview | 299 | * DOC: driver instance overview |
300 | * | 300 | * |
301 | * A device instance for a drm driver is represented by struct &drm_device. This | 301 | * A device instance for a drm driver is represented by &struct drm_device. This |
302 | * is allocated with drm_dev_alloc(), usually from bus-specific ->probe() | 302 | * is allocated with drm_dev_alloc(), usually from bus-specific ->probe() |
303 | * callbacks implemented by the driver. The driver then needs to initialize all | 303 | * callbacks implemented by the driver. The driver then needs to initialize all |
304 | * the various subsystems for the drm device like memory management, vblank | 304 | * the various subsystems for the drm device like memory management, vblank |
@@ -323,7 +323,7 @@ void drm_minor_release(struct drm_minor *minor) | |||
323 | * historical baggage. Hence use the reference counting provided by | 323 | * historical baggage. Hence use the reference counting provided by |
324 | * drm_dev_ref() and drm_dev_unref() only carefully. | 324 | * drm_dev_ref() and drm_dev_unref() only carefully. |
325 | * | 325 | * |
326 | * It is recommended that drivers embed struct &drm_device into their own device | 326 | * It is recommended that drivers embed &struct drm_device into their own device |
327 | * structure, which is supported through drm_dev_init(). | 327 | * structure, which is supported through drm_dev_init(). |
328 | */ | 328 | */ |
329 | 329 | ||
@@ -461,8 +461,8 @@ static void drm_fs_inode_free(struct inode *inode) | |||
461 | * Note that for purely virtual devices @parent can be NULL. | 461 | * Note that for purely virtual devices @parent can be NULL. |
462 | * | 462 | * |
463 | * Drivers that do not want to allocate their own device struct | 463 | * Drivers that do not want to allocate their own device struct |
464 | * embedding struct &drm_device can call drm_dev_alloc() instead. For drivers | 464 | * embedding &struct drm_device can call drm_dev_alloc() instead. For drivers |
465 | * that do embed struct &drm_device it must be placed first in the overall | 465 | * that do embed &struct drm_device it must be placed first in the overall |
466 | * structure, and the overall structure must be allocated using kmalloc(): The | 466 | * structure, and the overall structure must be allocated using kmalloc(): The |
467 | * drm core's release function unconditionally calls kfree() on the @dev pointer | 467 | * drm core's release function unconditionally calls kfree() on the @dev pointer |
468 | * when the final reference is released. | 468 | * when the final reference is released. |
@@ -568,7 +568,7 @@ EXPORT_SYMBOL(drm_dev_init); | |||
568 | * | 568 | * |
569 | * Note that for purely virtual devices @parent can be NULL. | 569 | * Note that for purely virtual devices @parent can be NULL. |
570 | * | 570 | * |
571 | * Drivers that wish to subclass or embed struct &drm_device into their | 571 | * Drivers that wish to subclass or embed &struct drm_device into their |
572 | * own struct should look at using drm_dev_init() instead. | 572 | * own struct should look at using drm_dev_init() instead. |
573 | * | 573 | * |
574 | * RETURNS: | 574 | * RETURNS: |