aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390/block
diff options
context:
space:
mode:
authorThomas Huth <thuth@linux.vnet.ibm.com>2014-03-31 09:24:08 -0400
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2014-04-03 08:30:52 -0400
commit1dad093b66fdd4fd5d7d2692169dc1bafd794628 (patch)
tree0774232941446dec7cf6ac05d9e9ab08284aab5c /drivers/s390/block
parent072c2790294210419db287995628406e270bf027 (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 'drivers/s390/block')
-rw-r--r--drivers/s390/block/dasd_diag.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/s390/block/dasd_diag.c b/drivers/s390/block/dasd_diag.c
index 9cbc567698ce..c062f1620c58 100644
--- a/drivers/s390/block/dasd_diag.c
+++ b/drivers/s390/block/dasd_diag.c
@@ -646,7 +646,7 @@ dasd_diag_init(void)
646 ASCEBC(dasd_diag_discipline.ebcname, 4); 646 ASCEBC(dasd_diag_discipline.ebcname, 4);
647 647
648 irq_subclass_register(IRQ_SUBCLASS_SERVICE_SIGNAL); 648 irq_subclass_register(IRQ_SUBCLASS_SERVICE_SIGNAL);
649 register_external_interrupt(0x2603, dasd_ext_handler); 649 register_external_irq(EXT_IRQ_CP_SERVICE, dasd_ext_handler);
650 dasd_diag_discipline_pointer = &dasd_diag_discipline; 650 dasd_diag_discipline_pointer = &dasd_diag_discipline;
651 return 0; 651 return 0;
652} 652}
@@ -654,7 +654,7 @@ dasd_diag_init(void)
654static void __exit 654static void __exit
655dasd_diag_cleanup(void) 655dasd_diag_cleanup(void)
656{ 656{
657 unregister_external_interrupt(0x2603, dasd_ext_handler); 657 unregister_external_irq(EXT_IRQ_CP_SERVICE, dasd_ext_handler);
658 irq_subclass_unregister(IRQ_SUBCLASS_SERVICE_SIGNAL); 658 irq_subclass_unregister(IRQ_SUBCLASS_SERVICE_SIGNAL);
659 dasd_diag_discipline_pointer = NULL; 659 dasd_diag_discipline_pointer = NULL;
660} 660}