diff options
| author | Olof Johansson <olof@lixom.net> | 2012-09-24 00:51:39 -0400 |
|---|---|---|
| committer | Olof Johansson <olof@lixom.net> | 2012-09-24 00:51:39 -0400 |
| commit | db404e72bb5432c886ff0ea42e7b31d16be0c837 (patch) | |
| tree | 91cf9618fa0b5233115abe6863d2f8a36390c050 /drivers/rtc | |
| parent | 40169a7c399346281da55ed9905a104d3da47945 (diff) | |
| parent | e9a91de7602a0a6999f23a2981db68b69aa695a7 (diff) | |
Merge tag 'vt8500-for-next' of git://git.code.sf.net/p/linuxwmt/code into next/dt
From Tony Prisk:
Update arch-vt8500 and drivers to device tree and
remove existing non-dt code.
* tag 'vt8500-for-next' of git://git.code.sf.net/p/linuxwmt/code:
arm: vt8500: Update arch-vt8500 to devicetree support.
arm: vt8500: gpio: Devicetree support for arch-vt8500
arm: vt8500: doc: Add device tree bindings for arch-vt8500 devices
arm: vt8500: clk: Add Common Clock Framework support
video: vt8500: Add devicetree support for vt8500-fb and wm8505-fb
serial: vt8500: Add devicetree support for vt8500-serial
rtc: vt8500: Add devicetree support for vt8500-rtc
arm: vt8500: Add device tree files for VIA/Wondermedia SoC's
Resolved add/change conflict in drivers/clk/Makefile.
Signed-off-by: Olof Johansson <olof@lixom.net>
Diffstat (limited to 'drivers/rtc')
| -rw-r--r-- | drivers/rtc/rtc-vt8500.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/drivers/rtc/rtc-vt8500.c b/drivers/rtc/rtc-vt8500.c index 9e94fb147c26..07bf19364a74 100644 --- a/drivers/rtc/rtc-vt8500.c +++ b/drivers/rtc/rtc-vt8500.c | |||
| @@ -23,6 +23,7 @@ | |||
| 23 | #include <linux/bcd.h> | 23 | #include <linux/bcd.h> |
| 24 | #include <linux/platform_device.h> | 24 | #include <linux/platform_device.h> |
| 25 | #include <linux/slab.h> | 25 | #include <linux/slab.h> |
| 26 | #include <linux/of.h> | ||
| 26 | 27 | ||
| 27 | /* | 28 | /* |
| 28 | * Register definitions | 29 | * Register definitions |
| @@ -302,12 +303,18 @@ static int __devexit vt8500_rtc_remove(struct platform_device *pdev) | |||
| 302 | return 0; | 303 | return 0; |
| 303 | } | 304 | } |
| 304 | 305 | ||
| 306 | static const struct of_device_id wmt_dt_ids[] = { | ||
| 307 | { .compatible = "via,vt8500-rtc", }, | ||
| 308 | {} | ||
| 309 | }; | ||
| 310 | |||
| 305 | static struct platform_driver vt8500_rtc_driver = { | 311 | static struct platform_driver vt8500_rtc_driver = { |
| 306 | .probe = vt8500_rtc_probe, | 312 | .probe = vt8500_rtc_probe, |
| 307 | .remove = __devexit_p(vt8500_rtc_remove), | 313 | .remove = __devexit_p(vt8500_rtc_remove), |
| 308 | .driver = { | 314 | .driver = { |
| 309 | .name = "vt8500-rtc", | 315 | .name = "vt8500-rtc", |
| 310 | .owner = THIS_MODULE, | 316 | .owner = THIS_MODULE, |
| 317 | .of_match_table = of_match_ptr(wmt_dt_ids), | ||
| 311 | }, | 318 | }, |
| 312 | }; | 319 | }; |
| 313 | 320 | ||
| @@ -315,5 +322,5 @@ module_platform_driver(vt8500_rtc_driver); | |||
| 315 | 322 | ||
| 316 | MODULE_AUTHOR("Alexey Charkov <alchark@gmail.com>"); | 323 | MODULE_AUTHOR("Alexey Charkov <alchark@gmail.com>"); |
| 317 | MODULE_DESCRIPTION("VIA VT8500 SoC Realtime Clock Driver (RTC)"); | 324 | MODULE_DESCRIPTION("VIA VT8500 SoC Realtime Clock Driver (RTC)"); |
| 318 | MODULE_LICENSE("GPL"); | 325 | MODULE_LICENSE("GPL v2"); |
| 319 | MODULE_ALIAS("platform:vt8500-rtc"); | 326 | MODULE_ALIAS("platform:vt8500-rtc"); |
