diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2015-06-23 16:35:06 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-08-03 09:29:08 -0700 |
commit | 0f0b7b10c3545704cf0d1705e33f1cc5a9fe8097 (patch) | |
tree | 6f759612d1f664448f12cc663004fb40fa8bda69 /drivers/gpu/drm | |
parent | 95f9b41004efdfe910aaf91b5d79f32d532845b1 (diff) | |
download | lwn-0f0b7b10c3545704cf0d1705e33f1cc5a9fe8097.tar.gz lwn-0f0b7b10c3545704cf0d1705e33f1cc5a9fe8097.zip |
drm/vgem: Set unique to "vgem"
commit fa2f97dd33c2c32a06a5ea7f6e87af06a2e26baa upstream.
Since there's only one global instance ever we don't need to have
anything fancy. Stops a WARNING in the get_unique ioctl that the
unique name isn't set.
Reportedy-and-tested-by: Fabio Coatti <fabio.coatti@gmail.com>
Cc: Fabio Coatti <fabio.coatti@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r-- | drivers/gpu/drm/vgem/vgem_drv.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/vgem/vgem_drv.c b/drivers/gpu/drm/vgem/vgem_drv.c index 7a207ca547be..6394547cf67a 100644 --- a/drivers/gpu/drm/vgem/vgem_drv.c +++ b/drivers/gpu/drm/vgem/vgem_drv.c @@ -328,6 +328,8 @@ static int __init vgem_init(void) goto out; } + drm_dev_set_unique(vgem_device, "vgem"); + ret = drm_dev_register(vgem_device, 0); if (ret) |