Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 284573
b: refs/heads/master
c: 1e351a9
h: refs/heads/master
i:
  284571: 4c2d374
v: v3
  • Loading branch information
Afzal Mohammed authored and Samuel Ortiz committed Jan 8, 2012
1 parent 39174b7 commit d84c122
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 26cc3ab984cd00e95cb58ba5aaea4238ea56c700
refs/heads/master: 1e351a95b6fda20e16b64a698bae505765080308
3 changes: 2 additions & 1 deletion trunk/drivers/mfd/tps65910-irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ int tps65910_irq_init(struct tps65910 *tps65910, int irq,

int tps65910_irq_exit(struct tps65910 *tps65910)
{
free_irq(tps65910->chip_irq, tps65910);
if (tps65910->chip_irq)
free_irq(tps65910->chip_irq, tps65910);
return 0;
}
7 changes: 2 additions & 5 deletions trunk/drivers/mfd/tps65910.c
Original file line number Diff line number Diff line change
Expand Up @@ -172,15 +172,12 @@ static int tps65910_i2c_probe(struct i2c_client *i2c,

tps65910_gpio_init(tps65910, pmic_plat_data->gpio_base);

ret = tps65910_irq_init(tps65910, init_data->irq, init_data);
if (ret < 0)
goto err;
tps65910_irq_init(tps65910, init_data->irq, init_data);

kfree(init_data);
return ret;

err:
mfd_remove_devices(tps65910->dev);
kfree(tps65910);
kfree(init_data);
return ret;
Expand All @@ -190,8 +187,8 @@ static int tps65910_i2c_remove(struct i2c_client *i2c)
{
struct tps65910 *tps65910 = i2c_get_clientdata(i2c);

mfd_remove_devices(tps65910->dev);
tps65910_irq_exit(tps65910);
mfd_remove_devices(tps65910->dev);
kfree(tps65910);

return 0;
Expand Down

0 comments on commit d84c122

Please sign in to comment.