Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 121417
b: refs/heads/master
c: 80a5c36
h: refs/heads/master
i:
  121415: 0cdfb43
v: v3
  • Loading branch information
Frank Munzert authored and Martin Schwidefsky committed Dec 25, 2008
1 parent b62dc65 commit 24a9b94
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 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: 2f526e5acbf1179d30bc9fa1d20b69ec4c0bb689
refs/heads/master: 80a5c36d1dae15520aa0df0eff713c6c41c46035
15 changes: 9 additions & 6 deletions trunk/drivers/s390/char/vmur.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
* Frank Munzert <munzert@de.ibm.com>
*/

#define KMSG_COMPONENT "vmur"
#define pr_fmt(fmt) KMSG_COMPONENT ": " fmt

#include <linux/cdev.h>
#include <linux/smp_lock.h>

Expand Down Expand Up @@ -40,8 +43,6 @@ MODULE_AUTHOR("IBM Corporation");
MODULE_DESCRIPTION("s390 z/VM virtual unit record device driver");
MODULE_LICENSE("GPL");

#define PRINTK_HEADER "vmur: "

static dev_t ur_first_dev_maj_min;
static struct class *vmur_class;
static struct debug_info *vmur_dbf;
Expand Down Expand Up @@ -987,7 +988,8 @@ static int __init ur_init(void)
dev_t dev;

if (!MACHINE_IS_VM) {
PRINT_ERR("%s is only available under z/VM.\n", ur_banner);
pr_err("The %s cannot be loaded without z/VM\n",
ur_banner);
return -ENODEV;
}

Expand All @@ -1006,7 +1008,8 @@ static int __init ur_init(void)

rc = alloc_chrdev_region(&dev, 0, NUM_MINORS, "vmur");
if (rc) {
PRINT_ERR("alloc_chrdev_region failed: err = %d\n", rc);
pr_err("Kernel function alloc_chrdev_region failed with "
"error code %d\n", rc);
goto fail_unregister_driver;
}
ur_first_dev_maj_min = MKDEV(MAJOR(dev), 0);
Expand All @@ -1016,7 +1019,7 @@ static int __init ur_init(void)
rc = PTR_ERR(vmur_class);
goto fail_unregister_region;
}
PRINT_INFO("%s loaded.\n", ur_banner);
pr_info("%s loaded.\n", ur_banner);
return 0;

fail_unregister_region:
Expand All @@ -1034,7 +1037,7 @@ static void __exit ur_exit(void)
unregister_chrdev_region(ur_first_dev_maj_min, NUM_MINORS);
ccw_driver_unregister(&ur_driver);
debug_unregister(vmur_dbf);
PRINT_INFO("%s unloaded.\n", ur_banner);
pr_info("%s unloaded.\n", ur_banner);
}

module_init(ur_init);
Expand Down

0 comments on commit 24a9b94

Please sign in to comment.