[PATCH 2/9] irq/irqdesc: change the name of delete_irq_desc() to irq_delete_desc()

Pingfan Liu
2022-04-20T14:05:52Z

Make the naming convention consistent with irq_insert_desc(),
irq_to_desc().

Signed-off-by: Pingfan Liu <kernelfans@gmail.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
To: linux-kernel@vger.kernel.org
---
kernel/irq/irqdesc.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/kernel/irq/irqdesc.c b/kernel/irq/irqdesc.c
index 8d0982233277..9feedaa08430 100644
--- a/kernel/irq/irqdesc.c
+++ b/kernel/irq/irqdesc.c
@@ -355,7 +355,7 @@ struct irq_desc *irq_to_desc(unsigned int irq)
EXPORT_SYMBOL_GPL(irq_to_desc);
#endif

-static void delete_irq_desc(unsigned int irq)
+static void irq_delete_desc(unsigned int irq)
{
radix_tree_delete(&irq_desc_tree, irq);
}
@@ -453,7 +453,7 @@ static void free_desc(unsigned int irq)
* irq_sysfs_init() as well.
*/
irq_sysfs_del(desc);
- delete_irq_desc(irq);
+ irq_delete_desc(irq);

/*
* We free the descriptor, masks and stat fields via RCU. That
--
2.31.1