usb: gadget: at91_udc: Fix clock names
authorBoris Brezillon <boris.brezillon@free-electrons.com>
Wed, 14 Jan 2015 16:21:57 +0000 (17:21 +0100)
committerNicolas Ferre <nicolas.ferre@atmel.com>
Thu, 15 Jan 2015 13:35:13 +0000 (14:35 +0100)
The driver is requesting clock by their global name (those declared in the
clk_lookup list), but this only works with !CCF kernels.

Now that all SoCs have moved to CCF, fix the driver to use local names
(hclk and pclk).

Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Acked-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Acked-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
drivers/usb/gadget/udc/at91_udc.c

index c862656d18b886938d35edf0ab4623bb5ed54f6e..9ff2f7e5c6a7b1a51d3d6891a38e1a2729e999b3 100644 (file)
@@ -1779,8 +1779,8 @@ static int at91udc_probe(struct platform_device *pdev)
        udc_reinit(udc);
 
        /* get interface and function clocks */
-       udc->iclk = clk_get(dev, "udc_clk");
-       udc->fclk = clk_get(dev, "udpck");
+       udc->iclk = clk_get(dev, "pclk");
+       udc->fclk = clk_get(dev, "hclk");
        if (IS_ENABLED(CONFIG_COMMON_CLK))
                udc->uclk = clk_get(dev, "usb_clk");
        if (IS_ERR(udc->iclk) || IS_ERR(udc->fclk) ||
This page took 0.02677 seconds and 5 git commands to generate.