diff options
-rw-r--r-- | drivers/s390/char/sclp_config.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/drivers/s390/char/sclp_config.c b/drivers/s390/char/sclp_config.c index 16e232a99fb7..95b909ac2b73 100644 --- a/drivers/s390/char/sclp_config.c +++ b/drivers/s390/char/sclp_config.c | |||
@@ -71,21 +71,9 @@ static struct sclp_register sclp_conf_register = | |||
71 | 71 | ||
72 | static int __init sclp_conf_init(void) | 72 | static int __init sclp_conf_init(void) |
73 | { | 73 | { |
74 | int rc; | ||
75 | |||
76 | INIT_WORK(&sclp_cpu_capability_work, sclp_cpu_capability_notify); | 74 | INIT_WORK(&sclp_cpu_capability_work, sclp_cpu_capability_notify); |
77 | INIT_WORK(&sclp_cpu_change_work, sclp_cpu_change_notify); | 75 | INIT_WORK(&sclp_cpu_change_work, sclp_cpu_change_notify); |
78 | 76 | return sclp_register(&sclp_conf_register); | |
79 | rc = sclp_register(&sclp_conf_register); | ||
80 | if (rc) | ||
81 | return rc; | ||
82 | |||
83 | if (!(sclp_conf_register.sclp_send_mask & EVTYP_CONFMGMDATA_MASK)) { | ||
84 | pr_warning("no configuration management.\n"); | ||
85 | sclp_unregister(&sclp_conf_register); | ||
86 | rc = -ENOSYS; | ||
87 | } | ||
88 | return rc; | ||
89 | } | 77 | } |
90 | 78 | ||
91 | __initcall(sclp_conf_init); | 79 | __initcall(sclp_conf_init); |