summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/vgpu/vgpu.c
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2016-05-24 16:50:06 -0400
committerTerje Bergstrom <tbergstrom@nvidia.com>2016-05-25 14:58:54 -0400
commitdc08f78c578e60c0b58e1f489bd9527e4ce2c254 (patch)
tree4586da9da29da22ae34fb40b3b825d65d0fe5025 /drivers/gpu/nvgpu/vgpu/vgpu.c
parent01a0c3f1b4ed2f43f3943125961f3cfd726ababf (diff)
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 <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/1152745 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Konsta Holtta <kholtta@nvidia.com> GVS: Gerrit_Virtual_Submit
Diffstat (limited to 'drivers/gpu/nvgpu/vgpu/vgpu.c')
-rw-r--r--drivers/gpu/nvgpu/vgpu/vgpu.c4
1 files changed, 2 insertions, 2 deletions
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)
418 platform->g = gk20a; 418 platform->g = gk20a;
419 gk20a->dev = dev; 419 gk20a->dev = dev;
420 420
421 err = gk20a_user_init(dev, INTERFACE_NAME); 421 err = gk20a_user_init(dev, INTERFACE_NAME, &nvgpu_class);
422 if (err) 422 if (err)
423 return err; 423 return err;
424 424
@@ -498,7 +498,7 @@ int vgpu_remove(struct platform_device *pdev)
498 kfree(vgpu_gpd); 498 kfree(vgpu_gpd);
499 499
500 vgpu_comm_deinit(); 500 vgpu_comm_deinit();
501 gk20a_user_deinit(dev); 501 gk20a_user_deinit(dev, &nvgpu_class);
502 gk20a_get_platform(dev)->g = NULL; 502 gk20a_get_platform(dev)->g = NULL;
503 kfree(g); 503 kfree(g);
504 return 0; 504 return 0;