Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 345002
b: refs/heads/master
c: 3863db3
h: refs/heads/master
v: v3
  • Loading branch information
Laxman Dewangan authored and Samuel Ortiz committed Nov 21, 2012
1 parent ce70447 commit ccb4558
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 17 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: e8e6f047e666a1682b59e52637a7acaa8a0b4c89
refs/heads/master: 3863db3e800c64e21e4effcc3de0f72cdb9b0d77
6 changes: 1 addition & 5 deletions trunk/drivers/mfd/tps65090.c
Original file line number Diff line number Diff line change
Expand Up @@ -269,12 +269,9 @@ static int __devinit tps65090_i2c_probe(struct i2c_client *client,
return -ENOMEM;
}

tps65090->client = client;
tps65090->dev = &client->dev;
i2c_set_clientdata(client, tps65090);

mutex_init(&tps65090->lock);

if (client->irq) {
ret = tps65090_irq_init(tps65090, client->irq, pdata->irq_base);
if (ret) {
Expand All @@ -284,8 +281,7 @@ static int __devinit tps65090_i2c_probe(struct i2c_client *client,
}
}

tps65090->rmap = devm_regmap_init_i2c(tps65090->client,
&tps65090_regmap_config);
tps65090->rmap = devm_regmap_init_i2c(client, &tps65090_regmap_config);
if (IS_ERR(tps65090->rmap)) {
ret = PTR_ERR(tps65090->rmap);
dev_err(&client->dev, "regmap_init failed with err: %d\n", ret);
Expand Down
11 changes: 0 additions & 11 deletions trunk/include/linux/mfd/tps65090.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,26 +25,15 @@
#include <linux/irq.h>

struct tps65090 {
struct mutex lock;
struct device *dev;
struct i2c_client *client;
struct regmap *rmap;
struct irq_chip irq_chip;
struct mutex irq_lock;
int irq_base;
unsigned int id;
};

struct tps65090_subdev_info {
int id;
const char *name;
void *platform_data;
};

struct tps65090_platform_data {
int irq_base;
int num_subdevs;
struct tps65090_subdev_info *subdevs;
};

/*
Expand Down

0 comments on commit ccb4558

Please sign in to comment.