aboutsummaryrefslogtreecommitdiffstats
path: root/net/iucv/iucv.c
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 /net/iucv/iucv.c
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 'net/iucv/iucv.c')
-rw-r--r--net/iucv/iucv.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/iucv/iucv.c b/net/iucv/iucv.c
index cd5b8ec9be04..12afba10a61f 100644
--- a/net/iucv/iucv.c
+++ b/net/iucv/iucv.c
@@ -2016,7 +2016,7 @@ static int __init iucv_init(void)
2016 rc = iucv_query_maxconn(); 2016 rc = iucv_query_maxconn();
2017 if (rc) 2017 if (rc)
2018 goto out_ctl; 2018 goto out_ctl;
2019 rc = register_external_interrupt(0x4000, iucv_external_interrupt); 2019 rc = register_external_irq(EXT_IRQ_IUCV, iucv_external_interrupt);
2020 if (rc) 2020 if (rc)
2021 goto out_ctl; 2021 goto out_ctl;
2022 iucv_root = root_device_register("iucv"); 2022 iucv_root = root_device_register("iucv");
@@ -2081,7 +2081,7 @@ out_free:
2081 } 2081 }
2082 root_device_unregister(iucv_root); 2082 root_device_unregister(iucv_root);
2083out_int: 2083out_int:
2084 unregister_external_interrupt(0x4000, iucv_external_interrupt); 2084 unregister_external_irq(EXT_IRQ_IUCV, iucv_external_interrupt);
2085out_ctl: 2085out_ctl:
2086 ctl_clear_bit(0, 1); 2086 ctl_clear_bit(0, 1);
2087out: 2087out:
@@ -2116,7 +2116,7 @@ static void __exit iucv_exit(void)
2116 } 2116 }
2117 root_device_unregister(iucv_root); 2117 root_device_unregister(iucv_root);
2118 bus_unregister(&iucv_bus); 2118 bus_unregister(&iucv_bus);
2119 unregister_external_interrupt(0x4000, iucv_external_interrupt); 2119 unregister_external_irq(EXT_IRQ_IUCV, iucv_external_interrupt);
2120} 2120}
2121 2121
2122subsys_initcall(iucv_init); 2122subsys_initcall(iucv_init);