fd51b8b4a43beaa551d3765137dc50240b9bd944
[openwrt/svn-archive/archive.git] / target / linux / lantiq / patches-3.2 / 0033-WDT-MIPS-lantiq-convert-watchdog-driver-to-clkdev-ap.patch
1 From f2a29d33abb24184f84533e2c6032d4b1c3fd346 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 33/73] 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 179bf98..da2b09f 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