Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 365757
b: refs/heads/master
c: aac8703
h: refs/heads/master
i:
  365755: 27c52dc
v: v3
  • Loading branch information
Jingoo Han authored and Linus Torvalds committed Apr 30, 2013
1 parent 9f7f2c9 commit 2c95490
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 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: 0ea9a0e7877489bdd50c3556eaf89aab79190072
refs/heads/master: aac8703c1313c4b7e1a4cf82bcfe62ab0ad79b0d
8 changes: 1 addition & 7 deletions trunk/drivers/rtc/rtc-ds1672.c
Original file line number Diff line number Diff line change
Expand Up @@ -155,11 +155,6 @@ static const struct rtc_class_ops ds1672_rtc_ops = {

static int ds1672_remove(struct i2c_client *client)
{
struct rtc_device *rtc = i2c_get_clientdata(client);

if (rtc)
rtc_device_unregister(rtc);

return 0;
}

Expand All @@ -177,7 +172,7 @@ static int ds1672_probe(struct i2c_client *client,

dev_info(&client->dev, "chip found, driver version " DRV_VERSION "\n");

rtc = rtc_device_register(ds1672_driver.driver.name, &client->dev,
rtc = devm_rtc_device_register(&client->dev, ds1672_driver.driver.name,
&ds1672_rtc_ops, THIS_MODULE);

if (IS_ERR(rtc))
Expand All @@ -202,7 +197,6 @@ static int ds1672_probe(struct i2c_client *client,
return 0;

exit_devreg:
rtc_device_unregister(rtc);
return err;
}

Expand Down

0 comments on commit 2c95490

Please sign in to comment.