Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 220580
b: refs/heads/master
c: 4b751cf
h: refs/heads/master
v: v3
  • Loading branch information
Axel Lin authored and Samuel Ortiz committed Oct 28, 2010
1 parent 428b7ce commit 00b4c03
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e7944d820b1e13a5b17c3047e033bf744bcf01f1
refs/heads/master: 4b751cf5de975a91246110f3da1299f9e466646d
13 changes: 13 additions & 0 deletions trunk/drivers/mfd/tps6586x.c
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,19 @@ static int __devinit tps6586x_i2c_probe(struct i2c_client *client,

static int __devexit tps6586x_i2c_remove(struct i2c_client *client)
{
struct tps6586x *tps6586x = i2c_get_clientdata(client);
struct tps6586x_platform_data *pdata = client->dev.platform_data;
int ret;

if (pdata->gpio_base) {
ret = gpiochip_remove(&tps6586x->gpio);
if (ret)
dev_err(&client->dev, "Can't remove gpio chip: %d\n",
ret);
}

tps6586x_remove_subdevs(tps6586x);
kfree(tps6586x);
return 0;
}

Expand Down

0 comments on commit 00b4c03

Please sign in to comment.