Commit 0f0b7b10 authored by Daniel Vetter's avatar Daniel Vetter Committed by Greg Kroah-Hartman

drm/vgem: Set unique to "vgem"

commit fa2f97dd 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: default avatarFabio Coatti <fabio.coatti@gmail.com>
Cc: Fabio Coatti <fabio.coatti@gmail.com>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@intel.com>
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 95f9b410
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment