diff options
author | Thomas Huth <thuth@linux.vnet.ibm.com> | 2014-03-31 09:24:08 -0400 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2014-04-03 08:30:52 -0400 |
commit | 1dad093b66fdd4fd5d7d2692169dc1bafd794628 (patch) | |
tree | 0774232941446dec7cf6ac05d9e9ab08284aab5c /arch/s390/mm | |
parent | 072c2790294210419db287995628406e270bf027 (diff) |
s390/irq: Use defines for external interruption codes
Use the new defines for external interruption codes to get rid
of "magic" numbers in the s390 source code. And while we're at it,
also rename the (un-)register_external_interrupt function to
something shorter so that this patch does not exceed the 80
columns all over the place.
Signed-off-by: Thomas Huth <thuth@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/mm')
-rw-r--r-- | arch/s390/mm/fault.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/s390/mm/fault.c b/arch/s390/mm/fault.c index d95265b2719f..750565f72e06 100644 --- a/arch/s390/mm/fault.c +++ b/arch/s390/mm/fault.c | |||
@@ -627,7 +627,7 @@ static int __init pfault_irq_init(void) | |||
627 | { | 627 | { |
628 | int rc; | 628 | int rc; |
629 | 629 | ||
630 | rc = register_external_interrupt(0x2603, pfault_interrupt); | 630 | rc = register_external_irq(EXT_IRQ_CP_SERVICE, pfault_interrupt); |
631 | if (rc) | 631 | if (rc) |
632 | goto out_extint; | 632 | goto out_extint; |
633 | rc = pfault_init() == 0 ? 0 : -EOPNOTSUPP; | 633 | rc = pfault_init() == 0 ? 0 : -EOPNOTSUPP; |
@@ -638,7 +638,7 @@ static int __init pfault_irq_init(void) | |||
638 | return 0; | 638 | return 0; |
639 | 639 | ||
640 | out_pfault: | 640 | out_pfault: |
641 | unregister_external_interrupt(0x2603, pfault_interrupt); | 641 | unregister_external_irq(EXT_IRQ_CP_SERVICE, pfault_interrupt); |
642 | out_extint: | 642 | out_extint: |
643 | pfault_disable = 1; | 643 | pfault_disable = 1; |
644 | return rc; | 644 | return rc; |