Skip to content

Commit

Permalink
drm/vgem: Set unique to "vgem"
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Daniel Vetter authored and Dave Airlie committed Jun 24, 2015
1 parent ce0bdb8 commit fa2f97d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/gpu/drm/vgem/vgem_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit fa2f97d

Please sign in to comment.