Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Benoit Cousson and committed by
Linus Torvalds
948170f8 6c3fb557

+20 -2
+12
Documentation/devicetree/bindings/rtc/twl-rtc.txt
··· 1 + * TI twl RTC 2 + 3 + The TWL family (twl4030/6030) contains a RTC. 4 + 5 + Required properties: 6 + - compatible : Should be twl4030-rtc 7 + 8 + Examples: 9 + 10 + rtc@0 { 11 + compatible = "ti,twl4030-rtc"; 12 + };
+8 -2
drivers/rtc/rtc-twl.c
··· 550 550 #define twl_rtc_resume NULL 551 551 #endif 552 552 553 + static const struct of_device_id twl_rtc_of_match[] = { 554 + {.compatible = "ti,twl4030-rtc", }, 555 + { }, 556 + }; 557 + MODULE_DEVICE_TABLE(of, twl_rtc_of_match); 553 558 MODULE_ALIAS("platform:twl_rtc"); 554 559 555 560 static struct platform_driver twl4030rtc_driver = { ··· 564 559 .suspend = twl_rtc_suspend, 565 560 .resume = twl_rtc_resume, 566 561 .driver = { 567 - .owner = THIS_MODULE, 568 - .name = "twl_rtc", 562 + .owner = THIS_MODULE, 563 + .name = "twl_rtc", 564 + .of_match_table = twl_rtc_of_match, 569 565 }, 570 566 }; 571 567