Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 283098
b: refs/heads/master
c: 948170f
h: refs/heads/master
v: v3
  • Loading branch information
Benoit Cousson authored and Linus Torvalds committed Jan 11, 2012
1 parent 4e73413 commit bb47ceb
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 3 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: 6c3fb55793f79bc975df0494c4d56ea6f0b0cc45
refs/heads/master: 948170f8944dfd29d13612fff48110a9814daeb1
12 changes: 12 additions & 0 deletions trunk/Documentation/devicetree/bindings/rtc/twl-rtc.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
* TI twl RTC

The TWL family (twl4030/6030) contains a RTC.

Required properties:
- compatible : Should be twl4030-rtc

Examples:

rtc@0 {
compatible = "ti,twl4030-rtc";
};
10 changes: 8 additions & 2 deletions trunk/drivers/rtc/rtc-twl.c
Original file line number Diff line number Diff line change
Expand Up @@ -550,6 +550,11 @@ static int twl_rtc_resume(struct platform_device *pdev)
#define twl_rtc_resume NULL
#endif

static const struct of_device_id twl_rtc_of_match[] = {
{.compatible = "ti,twl4030-rtc", },
{ },
};
MODULE_DEVICE_TABLE(of, twl_rtc_of_match);
MODULE_ALIAS("platform:twl_rtc");

static struct platform_driver twl4030rtc_driver = {
Expand All @@ -559,8 +564,9 @@ static struct platform_driver twl4030rtc_driver = {
.suspend = twl_rtc_suspend,
.resume = twl_rtc_resume,
.driver = {
.owner = THIS_MODULE,
.name = "twl_rtc",
.owner = THIS_MODULE,
.name = "twl_rtc",
.of_match_table = twl_rtc_of_match,
},
};

Expand Down

0 comments on commit bb47ceb

Please sign in to comment.