diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2015-06-23 16:35:06 +0200 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2015-06-24 11:20:46 +1000 |
commit | fa2f97dd33c2c32a06a5ea7f6e87af06a2e26baa (patch) | |
tree | 8a00b5023859fb93c6eea625dfe48273d1998721 /drivers/gpu | |
parent | ce0bdb849ad46e4b4e4cae6913b447ae9938bdcf (diff) | |
download | linux-fa2f97dd33c2c32a06a5ea7f6e87af06a2e26baa.tar.bz2 |
drm/vgem: Set unique to "vgem"
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.
Cc: <stable@vger.kernel.org> # 4.1+ only
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>
Diffstat (limited to 'drivers/gpu')
-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) |