diff options
author | Yinghai Lu <yinghai@kernel.org> | 2012-09-17 22:22:30 -0700 |
---|---|---|
committer | Yinghai Lu <yinghai@kernel.org> | 2012-09-17 22:22:30 -0700 |
commit | fca968f56003ebeb2798977b1ef4581d2b07b1a7 (patch) | |
tree | 411febfb08aba4a21e99a8ee32f485de597f99f9 | |
parent | d1b2bcf01c6437578ed8b48a70f539920e352c57 (diff) | |
download | linux-yinghai-fca968f56003ebeb2798977b1ef4581d2b07b1a7.tar.gz |
x86, irq: kill create_irq()
create_irq() will return -1 when fail to allocate.
create_irq_nr() will return 0 when fail to allocate.
it only causes confusing.
And now we don't have user for create_irq().
So remove create_irq() for x86.
Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Cc: Suresh Siddha <suresh.b.siddha@intel.com>
-rw-r--r-- | arch/x86/kernel/apic/io_apic.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/arch/x86/kernel/apic/io_apic.c b/arch/x86/kernel/apic/io_apic.c index e7852885f1f46c..fe3eb2d990bb69 100644 --- a/arch/x86/kernel/apic/io_apic.c +++ b/arch/x86/kernel/apic/io_apic.c @@ -3036,21 +3036,6 @@ unsigned int create_irq_nr(unsigned int from, int node) return ret; } -int create_irq(void) -{ - int node = cpu_to_node(0); - unsigned int irq_want; - int irq; - - irq_want = nr_irqs_gsi; - irq = create_irq_nr(irq_want, node); - - if (irq == 0) - irq = -1; - - return irq; -} - void destroy_irq(unsigned int irq) { struct irq_cfg *cfg = irq_get_chip_data(irq); |