summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bin/nv_init.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/nv_init.c b/bin/nv_init.c
index 1d921f071..31baedbb7 100644
--- a/bin/nv_init.c
+++ b/bin/nv_init.c
@@ -46,13 +46,12 @@ main(int argc, char **argv)
.disable = 0ULL,
.debug0 = 0ULL,
}, sizeof(struct nv_device_v0), &device);
- nvif_client_ref(NULL, &client);
if (ret)
return ret;
if (suspend) {
- client->driver->suspend(client);
- client->driver->resume(client);
+ nvif_client_suspend(client);
+ nvif_client_resume(client);
}
while (wait && (c = getchar()) == EOF) {
@@ -61,6 +60,7 @@ main(int argc, char **argv)
printf("shutting down...\n");
nvif_device_ref(NULL, &device);
+ nvif_client_ref(NULL, &client);
printf("done!\n");
return ret;
}