* [merged] drivers-rtc-rtc-twlc-add-dt-support-for-rtc-inside-twl4030-twl6030.patch removed from -mm tree
@ 2012-01-11 21:32 akpm
0 siblings, 0 replies; only message in thread
From: akpm @ 2012-01-11 21:32 UTC (permalink / raw)
To: b-cousson, a.zummo, mm-commits
The patch titled
Subject: drivers/rtc/rtc-twl.c: add DT support for RTC inside twl4030/twl6030
has been removed from the -mm tree. Its filename was
drivers-rtc-rtc-twlc-add-dt-support-for-rtc-inside-twl4030-twl6030.patch
This patch was dropped because it was merged into mainline or a subsystem tree
The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/
------------------------------------------------------
From: Benoit Cousson <b-cousson@ti.com>
Subject: drivers/rtc/rtc-twl.c: add DT support for RTC inside twl4030/twl6030
Add the DT support for the TI rtc-twl present in the twl4030 and twl6030
devices.
Signed-off-by: Benoit Cousson <b-cousson@ti.com>
Acked-by: Alessandro Zummo <a.zummo@towertech.it>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
Documentation/devicetree/bindings/rtc/twl-rtc.txt | 12 ++++++++++++
drivers/rtc/rtc-twl.c | 10 ++++++++--
2 files changed, 20 insertions(+), 2 deletions(-)
diff -puN /dev/null Documentation/devicetree/bindings/rtc/twl-rtc.txt
--- /dev/null
+++ a/Documentation/devicetree/bindings/rtc/twl-rtc.txt
@@ -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";
+};
diff -puN drivers/rtc/rtc-twl.c~drivers-rtc-rtc-twlc-add-dt-support-for-rtc-inside-twl4030-twl6030 drivers/rtc/rtc-twl.c
--- a/drivers/rtc/rtc-twl.c~drivers-rtc-rtc-twlc-add-dt-support-for-rtc-inside-twl4030-twl6030
+++ a/drivers/rtc/rtc-twl.c
@@ -550,6 +550,11 @@ static int twl_rtc_resume(struct platfor
#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 = {
@@ -559,8 +564,9 @@ static struct platform_driver twl4030rtc
.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,
},
};
_
Patches currently in -mm which might be from b-cousson@ti.com are
origin.patch
linux-next.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2012-01-11 21:32 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-11 21:32 [merged] drivers-rtc-rtc-twlc-add-dt-support-for-rtc-inside-twl4030-twl6030.patch removed from -mm tree akpm
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.