Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 99011
b: refs/heads/master
c: a44008f
h: refs/heads/master
i:
  99009: 5b0e053
  99007: da6f5cb
v: v3
  • Loading branch information
Christian Borntraeger authored and Heiko Carstens committed Jul 14, 2008
1 parent 20712dc commit 1262c82
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6b648063eb51e2620774ddaebef4e07f2f6f4ae7
refs/heads/master: a44008f2372684bacfab03de5039f68b613c5b53
15 changes: 5 additions & 10 deletions trunk/drivers/s390/char/vmcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -192,35 +192,30 @@ static int __init vmcp_init(void)
PRINT_WARN("z/VM CP interface is only available under z/VM\n");
return -ENODEV;
}

vmcp_debug = debug_register("vmcp", 1, 1, 240);
if (!vmcp_debug) {
PRINT_ERR("z/VM CP interface not loaded. Could not register "
"debug feature\n");
if (!vmcp_debug)
return -ENOMEM;
}

ret = debug_register_view(vmcp_debug, &debug_hex_ascii_view);
if (ret) {
PRINT_ERR("z/VM CP interface not loaded. Could not register "
"debug feature view. Error code: %d\n", ret);
debug_unregister(vmcp_debug);
return ret;
}

ret = misc_register(&vmcp_dev);
if (ret) {
PRINT_ERR("z/VM CP interface not loaded. Could not register "
"misc device. Error code: %d\n", ret);
debug_unregister(vmcp_debug);
return ret;
}
PRINT_INFO("z/VM CP interface loaded\n");

return 0;
}

static void __exit vmcp_exit(void)
{
misc_deregister(&vmcp_dev);
debug_unregister(vmcp_debug);
PRINT_INFO("z/VM CP interface unloaded.\n");
}

module_init(vmcp_init);
Expand Down

0 comments on commit 1262c82

Please sign in to comment.