linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mfd: Add free max8998->ono irq in max8998_irq_exit()
@ 2010-10-20  9:09 Axel Lin
  2010-10-21 23:00 ` Samuel Ortiz
  0 siblings, 1 reply; 2+ messages in thread
From: Axel Lin @ 2010-10-20  9:09 UTC (permalink / raw)
  To: linux-kernel; +Cc: Samuel Ortiz, Kyungmin Park, Joonyoung Shim

Signed-off-by: Axel Lin <axel.lin@gmail.com>
---
 drivers/mfd/max8998-irq.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/drivers/mfd/max8998-irq.c b/drivers/mfd/max8998-irq.c
index 346fd29..45bfe77 100644
--- a/drivers/mfd/max8998-irq.c
+++ b/drivers/mfd/max8998-irq.c
@@ -250,6 +250,9 @@ int max8998_irq_init(struct max8998_dev *max8998)
 
 void max8998_irq_exit(struct max8998_dev *max8998)
 {
+	if (max8998->ono)
+		free_irq(max8998->ono, max8998);
+
 	if (max8998->irq)
 		free_irq(max8998->irq, max8998);
 }
-- 
1.7.2




^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] mfd: Add free max8998->ono irq in max8998_irq_exit()
  2010-10-20  9:09 [PATCH] mfd: Add free max8998->ono irq in max8998_irq_exit() Axel Lin
@ 2010-10-21 23:00 ` Samuel Ortiz
  0 siblings, 0 replies; 2+ messages in thread
From: Samuel Ortiz @ 2010-10-21 23:00 UTC (permalink / raw)
  To: Axel Lin; +Cc: linux-kernel, Kyungmin Park, Joonyoung Shim

Hi Axel,

On Wed, Oct 20, 2010 at 05:09:56PM +0800, Axel Lin wrote:
> Signed-off-by: Axel Lin <axel.lin@gmail.com>
Patch applied, many thanks.

Cheers,
Samuel.


> ---
>  drivers/mfd/max8998-irq.c |    3 +++
>  1 files changed, 3 insertions(+), 0 deletions(-)
> 
> diff --git a/drivers/mfd/max8998-irq.c b/drivers/mfd/max8998-irq.c
> index 346fd29..45bfe77 100644
> --- a/drivers/mfd/max8998-irq.c
> +++ b/drivers/mfd/max8998-irq.c
> @@ -250,6 +250,9 @@ int max8998_irq_init(struct max8998_dev *max8998)
>  
>  void max8998_irq_exit(struct max8998_dev *max8998)
>  {
> +	if (max8998->ono)
> +		free_irq(max8998->ono, max8998);
> +
>  	if (max8998->irq)
>  		free_irq(max8998->irq, max8998);
>  }
> -- 
> 1.7.2
> 
> 
> 

-- 
Intel Open Source Technology Centre
http://oss.intel.com/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-10-21 23:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-20  9:09 [PATCH] mfd: Add free max8998->ono irq in max8998_irq_exit() Axel Lin
2010-10-21 23:00 ` Samuel Ortiz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).