Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 93967
b: refs/heads/master
c: e2bfe34
h: refs/heads/master
i:
  93965: df977c0
  93963: 626d796
  93959: 256a25b
  93951: 3d9b405
v: v3
  • Loading branch information
Paul Mundt authored and Linus Torvalds committed Apr 28, 2008
1 parent 68a3747 commit 4f67325
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 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: e275ac477161a3df5c27e40c55f7af94cfb396cf
refs/heads/master: e2bfe3424b368e977002fc58f81536d5d8ea9449
8 changes: 4 additions & 4 deletions trunk/drivers/rtc/rtc-rs5c372.c
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ static int rs5c_get_regs(struct rs5c372 *rs5c)
* least 80219 chips; this works around that bug.
*/
if ((i2c_transfer(client->adapter, msgs, 1)) != 1) {
pr_debug("%s: can't read registers\n", rs5c->rtc->name);
dev_warn(&client->dev, "can't read registers\n");
return -EIO;
}

Expand Down Expand Up @@ -512,12 +512,12 @@ static int rs5c372_probe(struct i2c_client *client)
goto exit;
}

/* we read registers 0x0f then 0x00-0x0f; skip the first one */
rs5c372->regs=&rs5c372->buf[1];

rs5c372->client = client;
i2c_set_clientdata(client, rs5c372);

/* we read registers 0x0f then 0x00-0x0f; skip the first one */
rs5c372->regs = &rs5c372->buf[1];

err = rs5c_get_regs(rs5c372);
if (err < 0)
goto exit_kfree;
Expand Down

0 comments on commit 4f67325

Please sign in to comment.