Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 218494
b: refs/heads/master
c: 59cca86
h: refs/heads/master
v: v3
  • Loading branch information
Vasiliy Kulikov authored and Linus Torvalds committed Oct 28, 2010
1 parent f1a9de9 commit 92d626d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 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: d7c7ef908b6497bb871e2e113e66e8fb0f757543
refs/heads/master: 59cca865f21e9e7beab73fcf79ba4eb776a4c228
4 changes: 3 additions & 1 deletion trunk/drivers/rtc/class.c
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,10 @@ struct rtc_device *rtc_device_register(const char *name, struct device *dev,
rtc_dev_prepare(rtc);

err = device_register(&rtc->dev);
if (err)
if (err) {
put_device(&rtc->dev);
goto exit_kfree;
}

rtc_dev_add_device(rtc);
rtc_sysfs_add_device(rtc);
Expand Down

0 comments on commit 92d626d

Please sign in to comment.