]> Git Repo - linux.git/commitdiff
drm/vgem: Set unique to "vgem"
authorDaniel Vetter <[email protected]>
Tue, 23 Jun 2015 14:35:06 +0000 (16:35 +0200)
committerDave Airlie <[email protected]>
Wed, 24 Jun 2015 01:20:46 +0000 (11:20 +1000)
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: <[email protected]> # 4.1+ only
Reportedy-and-tested-by: Fabio Coatti <[email protected]>
Cc: Fabio Coatti <[email protected]>
Signed-off-by: Daniel Vetter <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>
drivers/gpu/drm/vgem/vgem_drv.c

index 7a207ca547be24011fc0b89284ed7e728ded26f8..6394547cf67a0b3de9662105bc9e4b604d2f77c6 100644 (file)
@@ -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)
This page took 0.055725 seconds and 4 git commands to generate.