adds 3.3 patches and files
[openwrt/openwrt.git] / target / linux / lantiq / patches-3.3 / 0030-WDT-MIPS-lantiq-convert-watchdog-driver-to-clkdev-ap.patch
1 From 7971cef3f4036da74066aa4ca9b78fd1c9573a6c Mon Sep 17 00:00:00 2001
2 From: John Crispin <blogic@openwrt.org>
3 Date: Thu, 16 Feb 2012 20:17:50 +0100
4 Subject: [PATCH 30/70] WDT: MIPS: lantiq: convert watchdog driver to clkdev
5 api
6
7 Refrence the IO region clock via its new access function.
8
9 Signed-off-by: John Crispin <blogic@openwrt.org>
10 Cc: linux-watchdog@vger.kernel.org
11 ---
12 drivers/watchdog/lantiq_wdt.c | 2 +-
13 1 files changed, 1 insertions(+), 1 deletions(-)
14
15 diff --git a/drivers/watchdog/lantiq_wdt.c b/drivers/watchdog/lantiq_wdt.c
16 index 9c8b10c..fa4866b 100644
17 --- a/drivers/watchdog/lantiq_wdt.c
18 +++ b/drivers/watchdog/lantiq_wdt.c
19 @@ -206,7 +206,7 @@ ltq_wdt_probe(struct platform_device *pdev)
20 }
21
22 /* we do not need to enable the clock as it is always running */
23 - clk = clk_get(&pdev->dev, "io");
24 + clk = clk_get_io();
25 WARN_ON(!clk);
26 ltq_io_region_clk_rate = clk_get_rate(clk);
27 clk_put(clk);
28 --
29 1.7.9.1
30