max17042_battery: Fix driver exit function

This patch fixes driver's remove function: it should free the IRQ.

Signed-off-by: Ramakrishna Pallala <ramakrishna.pallala@intel.com>
Signed-off-by: Anton Vorontsov <anton.vorontsov@linaro.org>
This commit is contained in:
Ramakrishna Pallala 2012-03-26 15:38:26 +05:30 коммит произвёл Anton Vorontsov
Родитель 1ef3d8fb4d
Коммит bb28da90f4
1 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -715,6 +715,8 @@ static int __devexit max17042_remove(struct i2c_client *client)
{
struct max17042_chip *chip = i2c_get_clientdata(client);
if (client->irq)
free_irq(client->irq, chip);
power_supply_unregister(&chip->battery);
return 0;
}