diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2017-02-26 15:34:42 -0500 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2017-02-26 15:34:42 -0500 |
commit | 8e22e1b3499a446df48c2b26667ca36c55bf864c (patch) | |
tree | 5329f98b3eb3c95a9dcbab0fa4f9b6e62f0e788d /drivers/rtc | |
parent | 00d3c14f14d51babd8aeafd5fa734ccf04f5ca3d (diff) | |
parent | 64a577196d66b44e37384bc5c4d78c61f59d5b2a (diff) |
Merge airlied/drm-next into drm-misc-next
Backmerge the main pull request to sync up with all the newly landed
drivers. Otherwise we'll have chaos even before 4.12 started in
earnest.
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Diffstat (limited to 'drivers/rtc')
-rw-r--r-- | drivers/rtc/Kconfig | 5 | ||||
-rw-r--r-- | drivers/rtc/rtc-jz4740.c | 12 |
2 files changed, 14 insertions, 3 deletions
diff --git a/drivers/rtc/Kconfig b/drivers/rtc/Kconfig index c93c5a8fba32..5dc673dc9487 100644 --- a/drivers/rtc/Kconfig +++ b/drivers/rtc/Kconfig | |||
@@ -1551,12 +1551,15 @@ config RTC_DRV_MPC5121 | |||
1551 | will be called rtc-mpc5121. | 1551 | will be called rtc-mpc5121. |
1552 | 1552 | ||
1553 | config RTC_DRV_JZ4740 | 1553 | config RTC_DRV_JZ4740 |
1554 | bool "Ingenic JZ4740 SoC" | 1554 | tristate "Ingenic JZ4740 SoC" |
1555 | depends on MACH_INGENIC || COMPILE_TEST | 1555 | depends on MACH_INGENIC || COMPILE_TEST |
1556 | help | 1556 | help |
1557 | If you say yes here you get support for the Ingenic JZ47xx SoCs RTC | 1557 | If you say yes here you get support for the Ingenic JZ47xx SoCs RTC |
1558 | controllers. | 1558 | controllers. |
1559 | 1559 | ||
1560 | This driver can also be buillt as a module. If so, the module | ||
1561 | will be called rtc-jz4740. | ||
1562 | |||
1560 | config RTC_DRV_LPC24XX | 1563 | config RTC_DRV_LPC24XX |
1561 | tristate "NXP RTC for LPC178x/18xx/408x/43xx" | 1564 | tristate "NXP RTC for LPC178x/18xx/408x/43xx" |
1562 | depends on ARCH_LPC18XX || COMPILE_TEST | 1565 | depends on ARCH_LPC18XX || COMPILE_TEST |
diff --git a/drivers/rtc/rtc-jz4740.c b/drivers/rtc/rtc-jz4740.c index 72918c1ba092..64989afffa3d 100644 --- a/drivers/rtc/rtc-jz4740.c +++ b/drivers/rtc/rtc-jz4740.c | |||
@@ -17,6 +17,7 @@ | |||
17 | #include <linux/clk.h> | 17 | #include <linux/clk.h> |
18 | #include <linux/io.h> | 18 | #include <linux/io.h> |
19 | #include <linux/kernel.h> | 19 | #include <linux/kernel.h> |
20 | #include <linux/module.h> | ||
20 | #include <linux/of_device.h> | 21 | #include <linux/of_device.h> |
21 | #include <linux/platform_device.h> | 22 | #include <linux/platform_device.h> |
22 | #include <linux/reboot.h> | 23 | #include <linux/reboot.h> |
@@ -294,7 +295,7 @@ static void jz4740_rtc_power_off(void) | |||
294 | JZ_REG_RTC_RESET_COUNTER, reset_counter_ticks); | 295 | JZ_REG_RTC_RESET_COUNTER, reset_counter_ticks); |
295 | 296 | ||
296 | jz4740_rtc_poweroff(dev_for_power_off); | 297 | jz4740_rtc_poweroff(dev_for_power_off); |
297 | machine_halt(); | 298 | kernel_halt(); |
298 | } | 299 | } |
299 | 300 | ||
300 | static const struct of_device_id jz4740_rtc_of_match[] = { | 301 | static const struct of_device_id jz4740_rtc_of_match[] = { |
@@ -302,6 +303,7 @@ static const struct of_device_id jz4740_rtc_of_match[] = { | |||
302 | { .compatible = "ingenic,jz4780-rtc", .data = (void *)ID_JZ4780 }, | 303 | { .compatible = "ingenic,jz4780-rtc", .data = (void *)ID_JZ4780 }, |
303 | {}, | 304 | {}, |
304 | }; | 305 | }; |
306 | MODULE_DEVICE_TABLE(of, jz4740_rtc_of_match); | ||
305 | 307 | ||
306 | static int jz4740_rtc_probe(struct platform_device *pdev) | 308 | static int jz4740_rtc_probe(struct platform_device *pdev) |
307 | { | 309 | { |
@@ -429,6 +431,7 @@ static const struct platform_device_id jz4740_rtc_ids[] = { | |||
429 | { "jz4780-rtc", ID_JZ4780 }, | 431 | { "jz4780-rtc", ID_JZ4780 }, |
430 | {} | 432 | {} |
431 | }; | 433 | }; |
434 | MODULE_DEVICE_TABLE(platform, jz4740_rtc_ids); | ||
432 | 435 | ||
433 | static struct platform_driver jz4740_rtc_driver = { | 436 | static struct platform_driver jz4740_rtc_driver = { |
434 | .probe = jz4740_rtc_probe, | 437 | .probe = jz4740_rtc_probe, |
@@ -440,4 +443,9 @@ static struct platform_driver jz4740_rtc_driver = { | |||
440 | .id_table = jz4740_rtc_ids, | 443 | .id_table = jz4740_rtc_ids, |
441 | }; | 444 | }; |
442 | 445 | ||
443 | builtin_platform_driver(jz4740_rtc_driver); | 446 | module_platform_driver(jz4740_rtc_driver); |
447 | |||
448 | MODULE_AUTHOR("Lars-Peter Clausen <lars@metafoo.de>"); | ||
449 | MODULE_LICENSE("GPL"); | ||
450 | MODULE_DESCRIPTION("RTC driver for the JZ4740 SoC\n"); | ||
451 | MODULE_ALIAS("platform:jz4740-rtc"); | ||