Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 365775
b: refs/heads/master
c: 7c1385b
h: refs/heads/master
i:
  365773: b058fdd
  365771: d53ac66
  365767: b2af82a
  365759: a9cb8d0
v: v3
  • Loading branch information
Jingoo Han authored and Linus Torvalds committed Apr 30, 2013
1 parent ccbf40c commit 325a813
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 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: 92bb34ca4f3bea48973111d7364f90af2276b344
refs/heads/master: 7c1385b06d12783ec5e6463bf4d6414390858968
8 changes: 2 additions & 6 deletions trunk/drivers/rtc/rtc-rx8581.c
Original file line number Diff line number Diff line change
Expand Up @@ -240,8 +240,8 @@ static int rx8581_probe(struct i2c_client *client,

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

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

if (IS_ERR(rtc))
return PTR_ERR(rtc);
Expand All @@ -253,10 +253,6 @@ static int rx8581_probe(struct i2c_client *client,

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

rtc_device_unregister(rtc);

return 0;
}

Expand Down

0 comments on commit 325a813

Please sign in to comment.