[lantiq] adds zyxel p2601hnfx support
[openwrt/svn-archive/archive.git] / target / linux / lantiq / patches-3.3 / 0027-SERIAL-MIPS-lantiq-convert-serial-driver-to-clkdev-a.patch
1 From ded396701b769f4bd3960c353d40488fa5922a85 Mon Sep 17 00:00:00 2001
2 From: John Crispin <blogic@openwrt.org>
3 Date: Thu, 16 Feb 2012 20:17:16 +0100
4 Subject: [PATCH 27/70] SERIAL: MIPS: lantiq: convert serial driver to clkdev
5 api
6
7 Reference the FPI clock via its new access function.
8
9 Signed-off-by: John Crispin <blogic@openwrt.org>
10 Cc: linux-serial@vger.kernel.org
11 ---
12 drivers/tty/serial/lantiq.c | 6 +++++-
13 1 files changed, 5 insertions(+), 1 deletions(-)
14
15 --- a/drivers/tty/serial/lantiq.c
16 +++ b/drivers/tty/serial/lantiq.c
17 @@ -540,6 +540,10 @@ lqasc_request_port(struct uart_port *por
18 if (ltq_gpio_request(&pdev->dev, MUXC_SIF_TX_PIN,
19 3, 1, "asc1-tx"))
20 return -EBUSY;
21 + ltq_port->clk = clk_get(&pdev->dev, NULL);
22 + if (IS_ERR(ltq_port->clk))
23 + return PTR_ERR(ltq_port->clk);
24 + clk_enable(ltq_port->clk);
25 }
26 return 0;
27 }
28 @@ -698,7 +702,7 @@ lqasc_probe(struct platform_device *pdev
29 if (lqasc_port[pdev->id] != NULL)
30 return -EBUSY;
31
32 - clk = clk_get(&pdev->dev, "fpi");
33 + clk = clk_get_fpi();
34 if (IS_ERR(clk)) {
35 pr_err("failed to get fpi clk\n");
36 return -ENOENT;