8eb401d2967afeda75f52f4220fa4ce85ea38b19
[openwrt.git] / target / linux / lantiq / patches-3.2 / 0034-WDT-MIPS-lantiq-convert-watchdog-driver-to-clkdev-ap.patch
1 From ac9ded7942720231ed139ac0660e60a3a2f82b86 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 34/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 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.7.1
30
This page took 0.051497 seconds and 3 git commands to generate.