diff options
Diffstat (limited to 'drivers/gpu/drm/drm_drv.c')
| -rw-r--r-- | drivers/gpu/drm/drm_drv.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/gpu/drm/drm_drv.c b/drivers/gpu/drm/drm_drv.c index bc3da32d4585..4f41377b0b80 100644 --- a/drivers/gpu/drm/drm_drv.c +++ b/drivers/gpu/drm/drm_drv.c | |||
| @@ -56,7 +56,7 @@ static struct idr drm_minors_idr; | |||
| 56 | struct class *drm_class; | 56 | struct class *drm_class; |
| 57 | static struct dentry *drm_debugfs_root; | 57 | static struct dentry *drm_debugfs_root; |
| 58 | 58 | ||
| 59 | void drm_err(const char *func, const char *format, ...) | 59 | void drm_err(const char *format, ...) |
| 60 | { | 60 | { |
| 61 | struct va_format vaf; | 61 | struct va_format vaf; |
| 62 | va_list args; | 62 | va_list args; |
| @@ -66,7 +66,8 @@ void drm_err(const char *func, const char *format, ...) | |||
| 66 | vaf.fmt = format; | 66 | vaf.fmt = format; |
| 67 | vaf.va = &args; | 67 | vaf.va = &args; |
| 68 | 68 | ||
| 69 | printk(KERN_ERR "[" DRM_NAME ":%s] *ERROR* %pV", func, &vaf); | 69 | printk(KERN_ERR "[" DRM_NAME ":%pf] *ERROR* %pV", |
| 70 | __builtin_return_address(0), &vaf); | ||
| 70 | 71 | ||
| 71 | va_end(args); | 72 | va_end(args); |
| 72 | } | 73 | } |
| @@ -534,6 +535,8 @@ static void drm_fs_inode_free(struct inode *inode) | |||
| 534 | * The initial ref-count of the object is 1. Use drm_dev_ref() and | 535 | * The initial ref-count of the object is 1. Use drm_dev_ref() and |
| 535 | * drm_dev_unref() to take and drop further ref-counts. | 536 | * drm_dev_unref() to take and drop further ref-counts. |
| 536 | * | 537 | * |
| 538 | * Note that for purely virtual devices @parent can be NULL. | ||
| 539 | * | ||
| 537 | * RETURNS: | 540 | * RETURNS: |
| 538 | * Pointer to new DRM device, or NULL if out of memory. | 541 | * Pointer to new DRM device, or NULL if out of memory. |
| 539 | */ | 542 | */ |
