diff options
Diffstat (limited to 'bin/nv_init.c')
-rw-r--r-- | bin/nv_init.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/nv_init.c b/bin/nv_init.c index d012aa79e..8354f970c 100644 --- a/bin/nv_init.c +++ b/bin/nv_init.c @@ -41,12 +41,12 @@ main(int argc, char **argv) if (ret) return ret; - ret = nvif_device_new(nvif_object(client), 0, NV_DEVICE_CLASS, - &(struct nv_device_class) { + ret = nvif_device_new(nvif_object(client), 0, NV_DEVICE, + &(struct nv_device_v0) { .device = ~0ULL, .disable = 0ULL, .debug0 = 0ULL, - }, sizeof(struct nv_device_class), &device); + }, sizeof(struct nv_device_v0), &device); nvif_client_ref(NULL, &client); if (ret) return ret; |