From dc08f78c578e60c0b58e1f489bd9527e4ce2c254 Mon Sep 17 00:00:00 2001 From: Terje Bergstrom Date: Tue, 24 May 2016 13:50:06 -0700 Subject: gpu: nvgpu: Move PCI devnodes to own directory To be able to scan, PCI devnodes need to be in a directory with read permission. By default /dev is read protected by SELinux policy. Move the devnodes to their own directory so that reading this one directory can be allowed. At the same time rename the nodes to start with string "card-". JIRA DNVGPU-54 Change-Id: I0df4ced08afd1f3a468e983d07395ffcb8050365 Signed-off-by: Terje Bergstrom Reviewed-on: http://git-master/r/1152745 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Konsta Holtta GVS: Gerrit_Virtual_Submit --- drivers/gpu/nvgpu/vgpu/vgpu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'drivers/gpu/nvgpu/vgpu/vgpu.c') diff --git a/drivers/gpu/nvgpu/vgpu/vgpu.c b/drivers/gpu/nvgpu/vgpu/vgpu.c index 78492d3b..3c06652b 100644 --- a/drivers/gpu/nvgpu/vgpu/vgpu.c +++ b/drivers/gpu/nvgpu/vgpu/vgpu.c @@ -418,7 +418,7 @@ int vgpu_probe(struct platform_device *pdev) platform->g = gk20a; gk20a->dev = dev; - err = gk20a_user_init(dev, INTERFACE_NAME); + err = gk20a_user_init(dev, INTERFACE_NAME, &nvgpu_class); if (err) return err; @@ -498,7 +498,7 @@ int vgpu_remove(struct platform_device *pdev) kfree(vgpu_gpd); vgpu_comm_deinit(); - gk20a_user_deinit(dev); + gk20a_user_deinit(dev, &nvgpu_class); gk20a_get_platform(dev)->g = NULL; kfree(g); return 0; -- cgit v1.2.2