Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -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) ||