OpenWrt – Diff between revs 2 and 3

Subversion Repositories:
Rev:
Show entire fileIgnore whitespace
Rev 2 Rev 3
Line 1... Line 1...
1 Add a watchdog driver for ARM MPcore processors. 1 Add a watchdog driver for ARM MPcore processors.
Line 2... Line 2...
2   2  
-   3 Signed-off-by: Felix Fietkau <nbd@nbd.name>
3 Signed-off-by: Felix Fietkau <nbd@nbd.name> 4 ---
4 --- a/drivers/watchdog/Kconfig 5 --- a/drivers/watchdog/Kconfig
5 +++ b/drivers/watchdog/Kconfig 6 +++ b/drivers/watchdog/Kconfig
6 @@ -355,6 +355,13 @@ config KS8695_WATCHDOG 7 @@ -355,6 +355,13 @@ config KS8695_WATCHDOG
7 Watchdog timer embedded into KS8695 processor. This will reboot your 8 Watchdog timer embedded into KS8695 processor. This will reboot your
Line 115... Line 116...
115 +static int mpcore_wdt_probe(struct platform_device *pdev) 116 +static int mpcore_wdt_probe(struct platform_device *pdev)
116 +{ 117 +{
117 + struct resource *res; 118 + struct resource *res;
118 + unsigned long rate = twd_timer_get_rate(); 119 + unsigned long rate = twd_timer_get_rate();
119 + 120 +
120 + pr_info("MPCore WD init. clockrate: %lu prescaler: %u countrate: %lu timeout: %us\n", rate, 256, rate / 256, wdt_timeout); 121 + pr_info("MPCore WD init. clockrate: %u prescaler: %u countrate: %u timeout: %us\n", rate, 256, rate / 256, wdt_timeout);
121 + 122 +
122 + res = platform_get_resource(pdev, IORESOURCE_MEM, 0); 123 + res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
123 + if (!res) 124 + if (!res)
124 + return -ENODEV; 125 + return -ENODEV;
125 + 126 +