Skip to contentSkip to conversation

: kernel/irq/devres.c:fix kernel-doc

PATCH In review Qinghuang Feng 2 participants 2 messages Feb 10, 2009 – Feb 15, 2009 IRQ

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 : kernel/irq/devres.c:fix kernel-doc

Fix a typo, change dev_{free|request}_irq to devm_{free|request}_irq.

---

kernel/irq/devres.c +2 -2
index 38a25b8..30b17de 100644
@@ -40,7 +40,7 @@ static int devm_irq_match(struct device *dev, void *res, void *data)
  *	automatically freed on driver detach.
  *
  *	If an IRQ allocated with this function needs to be freed
- *	separately, dev_free_irq() must be used.
+ *	separately, devm_free_irq() must be used.
  */
 int devm_request_irq(struct device *dev, unsigned int irq,
 		     irq_handler_t handler, unsigned long irqflags,
@@ -77,7 +77,7 @@ EXPORT_SYMBOL(devm_request_irq);
  *	Except for the extra @dev argument, this function takes the
  *	same arguments and performs the same function as free_irq().
  *	This function instead of free_irq() should be used to manually
- *	free IRQs allocated with dev_request_irq().
+ *	free IRQs allocated with devm_request_irq().
  */
 void devm_free_irq(struct device *dev, unsigned int irq, void *dev_id)
 {
Acked-by on v1 1/1
#1 lore raw
Quoted 19 lines · On Tue, 10 Feb 2009 19:10:37 +0800 Qinghuang Feng wrote:

Fix a typo, change dev_{free|request}_irq to devm_{free|request}_irq.

---

kernel/irq/devres.c +1 -1
index 38a25b8..30b17de 100644
@@ -40,7 +40,7 @@ static int devm_irq_match(struct device *dev, void *res, void *data)
  *	automatically freed on driver detach.
  *
  *	If an IRQ allocated with this function needs to be freed
- *	separately, dev_free_irq() must be used.
+ *	separately, devm_free_irq() must be used.
  */
 int devm_request_irq(struct device *dev, unsigned int irq,
 		     irq_handler_t handler, unsigned long irqflags,

kernel/irq/devres.c EXPORT_SYMBOL(devm_request_irq); · line 83

Quoted 8 lines
kernel/irq/devres.c +1 -1
@@ -77,7 +77,7 @@ EXPORT_SYMBOL(devm_request_irq);
  *	Except for the extra @dev argument, this function takes the
  *	same arguments and performs the same function as free_irq().
  *	This function instead of free_irq() should be used to manually
- *	free IRQs allocated with dev_request_irq().
+ *	free IRQs allocated with devm_request_irq().
  */
 void devm_free_irq(struct device *dev, unsigned int irq, void *dev_id)
 {

Thanks.

---
~Randy