Commit 79235403 authored by Boris Brezillon's avatar Boris Brezillon Committed by Nicolas Ferre

usb: gadget: at91_udc: Fix clock names

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: default avatarBoris Brezillon <boris.brezillon@free-electrons.com>
Acked-by: default avatarAlexandre Belloni <alexandre.belloni@free-electrons.com>
Acked-by: default avatarFelipe Balbi <balbi@ti.com>
Signed-off-by: default avatarNicolas Ferre <nicolas.ferre@atmel.com>
parent ba991123
...@@ -1779,8 +1779,8 @@ static int at91udc_probe(struct platform_device *pdev) ...@@ -1779,8 +1779,8 @@ static int at91udc_probe(struct platform_device *pdev)
udc_reinit(udc); udc_reinit(udc);
/* get interface and function clocks */ /* get interface and function clocks */
udc->iclk = clk_get(dev, "udc_clk"); udc->iclk = clk_get(dev, "pclk");
udc->fclk = clk_get(dev, "udpck"); udc->fclk = clk_get(dev, "hclk");
if (IS_ENABLED(CONFIG_COMMON_CLK)) if (IS_ENABLED(CONFIG_COMMON_CLK))
udc->uclk = clk_get(dev, "usb_clk"); udc->uclk = clk_get(dev, "usb_clk");
if (IS_ERR(udc->iclk) || IS_ERR(udc->fclk) || if (IS_ERR(udc->iclk) || IS_ERR(udc->fclk) ||
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment