diff options
Diffstat (limited to 'arch/s390/mm/cmm.c')
-rw-r--r-- | arch/s390/mm/cmm.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/arch/s390/mm/cmm.c b/arch/s390/mm/cmm.c index fb584aa5c2c6..eb6a2ef5f82e 100644 --- a/arch/s390/mm/cmm.c +++ b/arch/s390/mm/cmm.c | |||
@@ -248,8 +248,6 @@ static int cmm_skip_blanks(char *cp, char **endp) | |||
248 | return str != cp; | 248 | return str != cp; |
249 | } | 249 | } |
250 | 250 | ||
251 | #ifdef CONFIG_CMM_PROC | ||
252 | |||
253 | static struct ctl_table cmm_table[]; | 251 | static struct ctl_table cmm_table[]; |
254 | 252 | ||
255 | static int cmm_pages_handler(ctl_table *ctl, int write, void __user *buffer, | 253 | static int cmm_pages_handler(ctl_table *ctl, int write, void __user *buffer, |
@@ -356,7 +354,6 @@ static struct ctl_table cmm_dir_table[] = { | |||
356 | }, | 354 | }, |
357 | { } | 355 | { } |
358 | }; | 356 | }; |
359 | #endif | ||
360 | 357 | ||
361 | #ifdef CONFIG_CMM_IUCV | 358 | #ifdef CONFIG_CMM_IUCV |
362 | #define SMSG_PREFIX "CMM" | 359 | #define SMSG_PREFIX "CMM" |
@@ -434,11 +431,9 @@ static int cmm_init(void) | |||
434 | { | 431 | { |
435 | int rc = -ENOMEM; | 432 | int rc = -ENOMEM; |
436 | 433 | ||
437 | #ifdef CONFIG_CMM_PROC | ||
438 | cmm_sysctl_header = register_sysctl_table(cmm_dir_table); | 434 | cmm_sysctl_header = register_sysctl_table(cmm_dir_table); |
439 | if (!cmm_sysctl_header) | 435 | if (!cmm_sysctl_header) |
440 | goto out_sysctl; | 436 | goto out_sysctl; |
441 | #endif | ||
442 | #ifdef CONFIG_CMM_IUCV | 437 | #ifdef CONFIG_CMM_IUCV |
443 | rc = smsg_register_callback(SMSG_PREFIX, cmm_smsg_target); | 438 | rc = smsg_register_callback(SMSG_PREFIX, cmm_smsg_target); |
444 | if (rc < 0) | 439 | if (rc < 0) |
@@ -465,10 +460,8 @@ out_oom_notify: | |||
465 | smsg_unregister_callback(SMSG_PREFIX, cmm_smsg_target); | 460 | smsg_unregister_callback(SMSG_PREFIX, cmm_smsg_target); |
466 | out_smsg: | 461 | out_smsg: |
467 | #endif | 462 | #endif |
468 | #ifdef CONFIG_CMM_PROC | ||
469 | unregister_sysctl_table(cmm_sysctl_header); | 463 | unregister_sysctl_table(cmm_sysctl_header); |
470 | out_sysctl: | 464 | out_sysctl: |
471 | #endif | ||
472 | del_timer_sync(&cmm_timer); | 465 | del_timer_sync(&cmm_timer); |
473 | return rc; | 466 | return rc; |
474 | } | 467 | } |
@@ -476,9 +469,7 @@ module_init(cmm_init); | |||
476 | 469 | ||
477 | static void cmm_exit(void) | 470 | static void cmm_exit(void) |
478 | { | 471 | { |
479 | #ifdef CONFIG_CMM_PROC | ||
480 | unregister_sysctl_table(cmm_sysctl_header); | 472 | unregister_sysctl_table(cmm_sysctl_header); |
481 | #endif | ||
482 | #ifdef CONFIG_CMM_IUCV | 473 | #ifdef CONFIG_CMM_IUCV |
483 | smsg_unregister_callback(SMSG_PREFIX, cmm_smsg_target); | 474 | smsg_unregister_callback(SMSG_PREFIX, cmm_smsg_target); |
484 | #endif | 475 | #endif |