diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/ctrl_gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/ctrl_gk20a.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/ctrl_gk20a.c b/drivers/gpu/nvgpu/gk20a/ctrl_gk20a.c index 3bcbdfd9..34351f93 100644 --- a/drivers/gpu/nvgpu/gk20a/ctrl_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/ctrl_gk20a.c | |||
@@ -258,7 +258,6 @@ long gk20a_ctrl_dev_ioctl(struct file *filp, unsigned int cmd, unsigned long arg | |||
258 | struct zbc_entry *zbc_val; | 258 | struct zbc_entry *zbc_val; |
259 | struct zbc_query_params *zbc_tbl; | 259 | struct zbc_query_params *zbc_tbl; |
260 | int i, err = 0; | 260 | int i, err = 0; |
261 | struct gk20a_platform *platform = platform_get_drvdata(dev); | ||
262 | 261 | ||
263 | gk20a_dbg_fn(""); | 262 | gk20a_dbg_fn(""); |
264 | 263 | ||
@@ -320,7 +319,8 @@ long gk20a_ctrl_dev_ioctl(struct file *filp, unsigned int cmd, unsigned long arg | |||
320 | case NVGPU_GPU_IOCTL_ZBC_SET_TABLE: | 319 | case NVGPU_GPU_IOCTL_ZBC_SET_TABLE: |
321 | set_table_args = (struct nvgpu_gpu_zbc_set_table_args *)buf; | 320 | set_table_args = (struct nvgpu_gpu_zbc_set_table_args *)buf; |
322 | 321 | ||
323 | if (platform->virtual_dev) | 322 | /* not supported for vgpu */ |
323 | if (gk20a_gpu_is_virtual(dev)) | ||
324 | return -ENOMEM; | 324 | return -ENOMEM; |
325 | 325 | ||
326 | zbc_val = kzalloc(sizeof(struct zbc_entry), GFP_KERNEL); | 326 | zbc_val = kzalloc(sizeof(struct zbc_entry), GFP_KERNEL); |