Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 349303
b: refs/heads/master
c: b30dd8f
h: refs/heads/master
i:
  349301: bda2d0e
  349299: 3b89e6e
  349295: 3d0ba0a
v: v3
  • Loading branch information
Axel Lin authored and Samuel Ortiz committed Jan 22, 2013
1 parent 640a704 commit c89adc3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 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: 2429d863868edb611f033c9ce4db519fbc270240
refs/heads/master: b30dd8f2e5e6a1b31b89d93d85942055b97327c2
5 changes: 2 additions & 3 deletions trunk/drivers/mfd/pcf50633-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,8 @@ static int pcf50633_probe(struct i2c_client *client,
if (!pcf)
return -ENOMEM;

i2c_set_clientdata(client, pcf);
pcf->dev = &client->dev;
pcf->pdata = pdata;

mutex_init(&pcf->lock);
Expand All @@ -219,9 +221,6 @@ static int pcf50633_probe(struct i2c_client *client,
return ret;
}

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

version = pcf50633_reg_read(pcf, 0);
variant = pcf50633_reg_read(pcf, 1);
if (version < 0 || variant < 0) {
Expand Down

0 comments on commit c89adc3

Please sign in to comment.