diff options
author | Arnd Bergmann <arnd@arndb.de> | 2012-08-16 05:00:30 -0400 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2012-08-16 05:00:30 -0400 |
commit | 71f8e5b260e17a428dd7513c7d1e01777b69139b (patch) | |
tree | 4c90add345de8cadd83802b592a62a8d0aebc2d6 /drivers/rtc | |
parent | 0d7614f09c1ebdbaa1599a5aba7593f147bf96ee (diff) | |
parent | 51931b37fcb17a2f48f726fd21b88e3af770ddc2 (diff) |
Merge branch 'dt' of git://github.com/hzhuang1/linux into next/dt
From Haojian Zhuang <haojian.zhuang@gmail.com>:
Device Tree conversion patches for PXA and MMP, version 4
v4:
1. remove pinctrl patches for pxa.
v3:
1. Revert d03c1990c9681047bf94caa497c41172b3f28351 GPIO: gpio-pxa: fix
devicetree functions
since it's merged into Linus' gpio tree.
v2:
1. Add Linus's Ack in pinctrl driver.
2. Add chao's & haojian's patches for Tauros2 cache.
* 'dt' of git://github.com/hzhuang1/linux:
ARM: mmp: enable tauros2 cache in mmp2 dt
ARM: mmp: enable tauros2 cache in pxa910
ARM: cache: add dt support for tauros2 cache
ARM: mmp&dove: modify tauros2_init call
ARM: cache: add extra feature enable for tauros2
ARM: cache: add cputype.h for tauros2
ARM: cache: fix uninitialized ptr in tauros2_init
gpio: pxa: add chain_eneter and chain_exit for irq handler
ARM: pxa: support CKENC in clk_enable
ARM: pxa: add .dtsi files
ARM: pxa3xx: add generic DT machine code
ARM: pxa3xx: skip default device initialization when booting via DT
ARM: pxa: add devicetree code for irq handling
GPIO: gpio-pxa: simplify pxa_gpio_to_irq() and pxa_irq_to_chip()
MTD: pxa3xx-nand: add devicetree bindings
RTC: add DT bindings to pxa-rtc
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'drivers/rtc')
-rw-r--r-- | drivers/rtc/rtc-pxa.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/rtc/rtc-pxa.c b/drivers/rtc/rtc-pxa.c index 0075c8fd93d8..f771b2ee4b18 100644 --- a/drivers/rtc/rtc-pxa.c +++ b/drivers/rtc/rtc-pxa.c | |||
@@ -27,6 +27,8 @@ | |||
27 | #include <linux/interrupt.h> | 27 | #include <linux/interrupt.h> |
28 | #include <linux/io.h> | 28 | #include <linux/io.h> |
29 | #include <linux/slab.h> | 29 | #include <linux/slab.h> |
30 | #include <linux/of.h> | ||
31 | #include <linux/of_device.h> | ||
30 | 32 | ||
31 | #include <mach/hardware.h> | 33 | #include <mach/hardware.h> |
32 | 34 | ||
@@ -396,6 +398,14 @@ static int __exit pxa_rtc_remove(struct platform_device *pdev) | |||
396 | return 0; | 398 | return 0; |
397 | } | 399 | } |
398 | 400 | ||
401 | #ifdef CONFIG_OF | ||
402 | static struct of_device_id pxa_rtc_dt_ids[] = { | ||
403 | { .compatible = "marvell,pxa-rtc" }, | ||
404 | {} | ||
405 | }; | ||
406 | MODULE_DEVICE_TABLE(of, pxa_rtc_dt_ids); | ||
407 | #endif | ||
408 | |||
399 | #ifdef CONFIG_PM | 409 | #ifdef CONFIG_PM |
400 | static int pxa_rtc_suspend(struct device *dev) | 410 | static int pxa_rtc_suspend(struct device *dev) |
401 | { | 411 | { |
@@ -425,6 +435,7 @@ static struct platform_driver pxa_rtc_driver = { | |||
425 | .remove = __exit_p(pxa_rtc_remove), | 435 | .remove = __exit_p(pxa_rtc_remove), |
426 | .driver = { | 436 | .driver = { |
427 | .name = "pxa-rtc", | 437 | .name = "pxa-rtc", |
438 | .of_match_table = of_match_ptr(pxa_rtc_dt_ids), | ||
428 | #ifdef CONFIG_PM | 439 | #ifdef CONFIG_PM |
429 | .pm = &pxa_rtc_pm_ops, | 440 | .pm = &pxa_rtc_pm_ops, |
430 | #endif | 441 | #endif |