mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 02:22:34 +03:00
gpu: nvgpu: init: rename init functions
Rename init functions that still carry the gk20a moniker to use the more appropriate nvgpu name instead. JIRA NVGPU-2385 Change-Id: I5d40cd72943272c8b5f16b97d9a786d9c41496d4 Signed-off-by: Philip Elcan <pelcan@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2156220 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
9705c86b98
commit
91187b6db2
@@ -107,7 +107,7 @@ int gk20a_ctrl_dev_open(struct inode *inode, struct file *filp)
|
||||
|
||||
l = container_of(inode->i_cdev,
|
||||
struct nvgpu_os_linux, ctrl.cdev);
|
||||
g = gk20a_get(&l->g);
|
||||
g = nvgpu_get(&l->g);
|
||||
if (!g)
|
||||
return -ENODEV;
|
||||
|
||||
@@ -137,7 +137,7 @@ int gk20a_ctrl_dev_open(struct inode *inode, struct file *filp)
|
||||
err = nvgpu_clk_arb_init_session(g, &priv->clk_session);
|
||||
free_ref:
|
||||
if (err != 0) {
|
||||
gk20a_put(g);
|
||||
nvgpu_put(g);
|
||||
if (priv)
|
||||
nvgpu_kfree(g, priv);
|
||||
} else {
|
||||
@@ -163,7 +163,7 @@ int gk20a_ctrl_dev_release(struct inode *inode, struct file *filp)
|
||||
if (priv->clk_session)
|
||||
nvgpu_clk_arb_release_session(g, priv->clk_session);
|
||||
|
||||
gk20a_put(g);
|
||||
nvgpu_put(g);
|
||||
nvgpu_kfree(g, priv);
|
||||
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user