mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 12:28:41 +08:00
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: 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>
This commit is contained in:
parent
ba99112384
commit
7923540385
@ -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) ||
|
||||
|
Loading…
Reference in New Issue
Block a user