lkml.org 
[lkml]   [2012]   [Apr]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRE: [PATCH] max17042_battery: fix driver exit function
Date
Hi Anton,

> From: Pallala, Ramakrishna
> Sent: Monday, March 26, 2012 3:38 PM
> To: linux-kernel@vger.kernel.org
> Cc: Anton Vorontsov; Anton Vorontsov; Pallala, Ramakrishna
> Subject: [PATCH] max17042_battery: fix driver exit function
>
> This patch frees the irq and sets the i2c client data to NULL in driver remove function.
>
> Signed-off-by: Ramakrishna Pallala <ramakrishna.pallala@intel.com>
> ---
> drivers/power/max17042_battery.c | 4 ++++
> 1 files changed, 4 insertions(+), 0 deletions(-)
>
> diff --git a/drivers/power/max17042_battery.c b/drivers/power/max17042_battery.c
> index abf3400..d4868c5 100644
> --- a/drivers/power/max17042_battery.c
> +++ b/drivers/power/max17042_battery.c
> @@ -721,6 +721,10 @@ static int __devexit max17042_remove(struct i2c_client *client)
> struct max17042_chip *chip = i2c_get_clientdata(client);
>
> power_supply_unregister(&chip->battery);
> + if (client->irq)
> + free_irq(client->irq, chip);
> + i2c_set_clientdata(client, NULL);
> +
> return 0;
> }

I have not received any comments for this patch.
Can I assume that this patch is in your merge queue?

Thanks,
Ram


\
 
 \ /
  Last update: 2012-04-10 07:23    [W:0.069 / U:0.724 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site