diff options
| author | Olof Johansson <olof@lixom.net> | 2012-03-08 12:36:57 -0500 |
|---|---|---|
| committer | Olof Johansson <olof@lixom.net> | 2012-03-08 12:36:57 -0500 |
| commit | 2c76744b1b7850770712788a874f479d8033dc72 (patch) | |
| tree | e86b20141a28e20534c37d757ff9f7663609794c | |
| parent | 990b07d952bff7116ba79e3c4ceeae5dd8d5ec3d (diff) | |
| parent | 8bec2e9e2efa8660c88077b2f1524b7a36eda714 (diff) | |
Merge branch 'rtc' of git://github.com/hzhuang1/linux into next/drivers
* 'rtc' of git://github.com/hzhuang1/linux:
rtc: sa1100: add OF support
| -rw-r--r-- | drivers/rtc/rtc-sa1100.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/rtc/rtc-sa1100.c b/drivers/rtc/rtc-sa1100.c index 962510cf726f..e443b7850ede 100644 --- a/drivers/rtc/rtc-sa1100.c +++ b/drivers/rtc/rtc-sa1100.c | |||
| @@ -30,6 +30,7 @@ | |||
| 30 | #include <linux/interrupt.h> | 30 | #include <linux/interrupt.h> |
| 31 | #include <linux/slab.h> | 31 | #include <linux/slab.h> |
| 32 | #include <linux/string.h> | 32 | #include <linux/string.h> |
| 33 | #include <linux/of.h> | ||
| 33 | #include <linux/pm.h> | 34 | #include <linux/pm.h> |
| 34 | #include <linux/bitops.h> | 35 | #include <linux/bitops.h> |
| 35 | 36 | ||
| @@ -349,6 +350,13 @@ static const struct dev_pm_ops sa1100_rtc_pm_ops = { | |||
| 349 | }; | 350 | }; |
| 350 | #endif | 351 | #endif |
| 351 | 352 | ||
| 353 | static struct of_device_id sa1100_rtc_dt_ids[] = { | ||
| 354 | { .compatible = "mrvl,sa1100-rtc", }, | ||
| 355 | { .compatible = "mrvl,mmp-rtc", }, | ||
| 356 | {} | ||
| 357 | }; | ||
| 358 | MODULE_DEVICE_TABLE(of, sa1100_rtc_dt_ids); | ||
| 359 | |||
| 352 | static struct platform_driver sa1100_rtc_driver = { | 360 | static struct platform_driver sa1100_rtc_driver = { |
| 353 | .probe = sa1100_rtc_probe, | 361 | .probe = sa1100_rtc_probe, |
| 354 | .remove = sa1100_rtc_remove, | 362 | .remove = sa1100_rtc_remove, |
| @@ -357,6 +365,7 @@ static struct platform_driver sa1100_rtc_driver = { | |||
| 357 | #ifdef CONFIG_PM | 365 | #ifdef CONFIG_PM |
| 358 | .pm = &sa1100_rtc_pm_ops, | 366 | .pm = &sa1100_rtc_pm_ops, |
| 359 | #endif | 367 | #endif |
| 368 | .of_match_table = sa1100_rtc_dt_ids, | ||
| 360 | }, | 369 | }, |
| 361 | }; | 370 | }; |
| 362 | 371 | ||
