From: Jean Delvare on
Fix the reference (in comment) from devm_request_irq to devm_free_irq
and back.

Signed-off-by: Jean Delvare <khali(a)linux-fr.org>
---
kernel/irq/devres.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

--- linux-2.6.33-rc7.orig/kernel/irq/devres.c 2009-06-10 05:05:27.000000000 +0200
+++ linux-2.6.33-rc7/kernel/irq/devres.c 2010-02-11 14:53:35.000000000 +0100
@@ -42,7 +42,7 @@ static int devm_irq_match(struct device
* 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_threaded_irq(struct device *dev, unsigned int irq,
irq_handler_t handler, irq_handler_t thread_fn,
@@ -81,7 +81,7 @@ EXPORT_SYMBOL(devm_request_threaded_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)
{


--
Jean Delvare
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo(a)vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
From: Jiri Kosina on
On Thu, 11 Feb 2010, Jean Delvare wrote:

> Fix the reference (in comment) from devm_request_irq to devm_free_irq
> and back.
>
> Signed-off-by: Jean Delvare <khali(a)linux-fr.org>
> ---
> kernel/irq/devres.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> --- linux-2.6.33-rc7.orig/kernel/irq/devres.c 2009-06-10 05:05:27.000000000 +0200
> +++ linux-2.6.33-rc7/kernel/irq/devres.c 2010-02-11 14:53:35.000000000 +0100
> @@ -42,7 +42,7 @@ static int devm_irq_match(struct device
> * 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_threaded_irq(struct device *dev, unsigned int irq,
> irq_handler_t handler, irq_handler_t thread_fn,
> @@ -81,7 +81,7 @@ EXPORT_SYMBOL(devm_request_threaded_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)
> {

Hi Jean,

the latter has already been fixed in my tree. Applied the former hunk.
Thanks,

--
Jiri Kosina
SUSE Labs, Novell Inc.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo(a)vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/