|
33 | 33 | #include "nouveau_abi16.h" |
34 | 34 |
|
35 | 35 | struct nouveau_abi16 * |
36 | | -nouveau_abi16_get(struct drm_file *file_priv, struct drm_device *dev) |
| 36 | +nouveau_abi16_get(struct drm_file *file_priv) |
37 | 37 | { |
38 | 38 | struct nouveau_cli *cli = nouveau_cli(file_priv); |
39 | 39 | mutex_lock(&cli->mutex); |
@@ -236,7 +236,7 @@ nouveau_abi16_ioctl_channel_alloc(ABI16_IOCTL_ARGS) |
236 | 236 | struct drm_nouveau_channel_alloc *init = data; |
237 | 237 | struct nouveau_cli *cli = nouveau_cli(file_priv); |
238 | 238 | struct nouveau_drm *drm = nouveau_drm(dev); |
239 | | - struct nouveau_abi16 *abi16 = nouveau_abi16_get(file_priv, dev); |
| 239 | + struct nouveau_abi16 *abi16 = nouveau_abi16_get(file_priv); |
240 | 240 | struct nouveau_abi16_chan *chan; |
241 | 241 | struct nvif_device *device; |
242 | 242 | int ret; |
|
342 | 342 | nouveau_abi16_ioctl_channel_free(ABI16_IOCTL_ARGS) |
343 | 343 | { |
344 | 344 | struct drm_nouveau_channel_free *req = data; |
345 | | - struct nouveau_abi16 *abi16 = nouveau_abi16_get(file_priv, dev); |
| 345 | + struct nouveau_abi16 *abi16 = nouveau_abi16_get(file_priv); |
346 | 346 | struct nouveau_abi16_chan *chan; |
347 | 347 |
|
348 | 348 | if (unlikely(!abi16)) |
|
359 | 359 | nouveau_abi16_ioctl_grobj_alloc(ABI16_IOCTL_ARGS) |
360 | 360 | { |
361 | 361 | struct drm_nouveau_grobj_alloc *init = data; |
362 | | - struct nouveau_abi16 *abi16 = nouveau_abi16_get(file_priv, dev); |
| 362 | + struct nouveau_abi16 *abi16 = nouveau_abi16_get(file_priv); |
363 | 363 | struct nouveau_abi16_chan *chan; |
364 | 364 | struct nouveau_abi16_ntfy *ntfy; |
365 | 365 | struct nvif_client *client; |
@@ -452,7 +452,7 @@ nouveau_abi16_ioctl_notifierobj_alloc(ABI16_IOCTL_ARGS) |
452 | 452 | { |
453 | 453 | struct drm_nouveau_notifierobj_alloc *info = data; |
454 | 454 | struct nouveau_drm *drm = nouveau_drm(dev); |
455 | | - struct nouveau_abi16 *abi16 = nouveau_abi16_get(file_priv, dev); |
| 455 | + struct nouveau_abi16 *abi16 = nouveau_abi16_get(file_priv); |
456 | 456 | struct nouveau_abi16_chan *chan; |
457 | 457 | struct nouveau_abi16_ntfy *ntfy; |
458 | 458 | struct nvif_device *device = &abi16->device; |
|
524 | 524 | nouveau_abi16_ioctl_gpuobj_free(ABI16_IOCTL_ARGS) |
525 | 525 | { |
526 | 526 | struct drm_nouveau_gpuobj_free *fini = data; |
527 | | - struct nouveau_abi16 *abi16 = nouveau_abi16_get(file_priv, dev); |
| 527 | + struct nouveau_abi16 *abi16 = nouveau_abi16_get(file_priv); |
528 | 528 | struct nouveau_abi16_chan *chan; |
529 | 529 | struct nouveau_abi16_ntfy *ntfy; |
530 | 530 | int ret = -ENOENT; |
|
0 commit comments