aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/char/hvc_iucv.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/char/hvc_iucv.c b/drivers/char/hvc_iucv.c
index a53496828b76..146be5a60947 100644
--- a/drivers/char/hvc_iucv.c
+++ b/drivers/char/hvc_iucv.c
@@ -885,7 +885,7 @@ static int __init hvc_iucv_init(void)
885 unsigned int i; 885 unsigned int i;
886 886
887 if (!MACHINE_IS_VM) { 887 if (!MACHINE_IS_VM) {
888 pr_info("The z/VM IUCV HVC device driver cannot " 888 pr_notice("The z/VM IUCV HVC device driver cannot "
889 "be used without z/VM\n"); 889 "be used without z/VM\n");
890 return -ENODEV; 890 return -ENODEV;
891 } 891 }
@@ -893,8 +893,11 @@ static int __init hvc_iucv_init(void)
893 if (!hvc_iucv_devices) 893 if (!hvc_iucv_devices)
894 return -ENODEV; 894 return -ENODEV;
895 895
896 if (hvc_iucv_devices > MAX_HVC_IUCV_LINES) 896 if (hvc_iucv_devices > MAX_HVC_IUCV_LINES) {
897 pr_err("%lu is not a valid value for the hvc_iucv= "
898 "kernel parameter\n", hvc_iucv_devices);
897 return -EINVAL; 899 return -EINVAL;
900 }
898 901
899 hvc_iucv_buffer_cache = kmem_cache_create(KMSG_COMPONENT, 902 hvc_iucv_buffer_cache = kmem_cache_create(KMSG_COMPONENT,
900 sizeof(struct iucv_tty_buffer), 903 sizeof(struct iucv_tty_buffer),