Skip to content

Commit 07d8350

Browse files
afzalmamKAGA-KOKO
authored andcommitted
genirq: Remove setup_irq() and remove_irq()
Now that all the users of setup_irq() & remove_irq() have been replaced by request_irq() & free_irq() respectively, delete them. Signed-off-by: afzal mohammed <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Reviewed-by: Linus Walleij <[email protected]> Link: https://lkml.kernel.org/r/0aa8771ada1ac8e1312f6882980c9c08bd023148.1585320721.git.afzal.mohd.ma@gmail.com
1 parent 8f3d9f3 commit 07d8350

File tree

2 files changed

+0
-46
lines changed

2 files changed

+0
-46
lines changed

include/linux/irq.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -573,8 +573,6 @@ enum {
573573
#define IRQ_DEFAULT_INIT_FLAGS ARCH_IRQ_INIT_FLAGS
574574

575575
struct irqaction;
576-
extern int setup_irq(unsigned int irq, struct irqaction *new);
577-
extern void remove_irq(unsigned int irq, struct irqaction *act);
578576
extern int setup_percpu_irq(unsigned int irq, struct irqaction *new);
579577
extern void remove_percpu_irq(unsigned int irq, struct irqaction *act);
580578

kernel/irq/manage.c

Lines changed: 0 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1690,34 +1690,6 @@ __setup_irq(unsigned int irq, struct irq_desc *desc, struct irqaction *new)
16901690
return ret;
16911691
}
16921692

1693-
/**
1694-
* setup_irq - setup an interrupt
1695-
* @irq: Interrupt line to setup
1696-
* @act: irqaction for the interrupt
1697-
*
1698-
* Used to statically setup interrupts in the early boot process.
1699-
*/
1700-
int setup_irq(unsigned int irq, struct irqaction *act)
1701-
{
1702-
int retval;
1703-
struct irq_desc *desc = irq_to_desc(irq);
1704-
1705-
if (!desc || WARN_ON(irq_settings_is_per_cpu_devid(desc)))
1706-
return -EINVAL;
1707-
1708-
retval = irq_chip_pm_get(&desc->irq_data);
1709-
if (retval < 0)
1710-
return retval;
1711-
1712-
retval = __setup_irq(irq, desc, act);
1713-
1714-
if (retval)
1715-
irq_chip_pm_put(&desc->irq_data);
1716-
1717-
return retval;
1718-
}
1719-
EXPORT_SYMBOL_GPL(setup_irq);
1720-
17211693
/*
17221694
* Internal function to unregister an irqaction - used to free
17231695
* regular and special interrupts that are part of the architecture.
@@ -1858,22 +1830,6 @@ static struct irqaction *__free_irq(struct irq_desc *desc, void *dev_id)
18581830
return action;
18591831
}
18601832

1861-
/**
1862-
* remove_irq - free an interrupt
1863-
* @irq: Interrupt line to free
1864-
* @act: irqaction for the interrupt
1865-
*
1866-
* Used to remove interrupts statically setup by the early boot process.
1867-
*/
1868-
void remove_irq(unsigned int irq, struct irqaction *act)
1869-
{
1870-
struct irq_desc *desc = irq_to_desc(irq);
1871-
1872-
if (desc && !WARN_ON(irq_settings_is_per_cpu_devid(desc)))
1873-
__free_irq(desc, act->dev_id);
1874-
}
1875-
EXPORT_SYMBOL_GPL(remove_irq);
1876-
18771833
/**
18781834
* free_irq - free an interrupt allocated with request_irq
18791835
* @irq: Interrupt line to free

0 commit comments

Comments
 (0)