提交 79235403 编写于 作者: B Boris Brezillon 提交者: 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: NBoris Brezillon <boris.brezillon@free-electrons.com>
Acked-by: NAlexandre Belloni <alexandre.belloni@free-electrons.com>
Acked-by: NFelipe Balbi <balbi@ti.com>
Signed-off-by: NNicolas Ferre <nicolas.ferre@atmel.com>
上级 ba991123
......@@ -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) ||
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册