“9ab021b6cf8b5bfc40ea9333c9b64b554fe01cd4”上不存在“drivers/pci/controller/dwc/pci-imx6.c”
提交 4db9a9ba 编写于 作者: S Sylvain Lemieux 提交者: Stephen Boyd

clk: lpc32xx: do not register clock "0"

The following errors are display in the console during the power-on:
[    0.000000] lpc32xx_usb_clk_init: failed to register (null) clock: -12
[    0.000000] lpc32xx_clk_init: failed to register (null) clock: -12

There is no need to register clock "0"; the first clock used is 1;
Signed-off-by: NSylvain Lemieux <slemieux@tycoint.com>
Acked-by: NVladimir Zapolskiy <vz@mleia.com>
[sboyd@codeaurora.org: s/prepare/register/]
Signed-off-by: NStephen Boyd <sboyd@codeaurora.org>
上级 2430a94d
...@@ -1515,7 +1515,7 @@ static void __init lpc32xx_clk_init(struct device_node *np) ...@@ -1515,7 +1515,7 @@ static void __init lpc32xx_clk_init(struct device_node *np)
return; return;
} }
for (i = 0; i < LPC32XX_CLK_MAX; i++) { for (i = 1; i < LPC32XX_CLK_MAX; i++) {
clk[i] = lpc32xx_clk_register(i); clk[i] = lpc32xx_clk_register(i);
if (IS_ERR(clk[i])) { if (IS_ERR(clk[i])) {
pr_err("failed to register %s clock: %ld\n", pr_err("failed to register %s clock: %ld\n",
...@@ -1555,7 +1555,7 @@ static void __init lpc32xx_usb_clk_init(struct device_node *np) ...@@ -1555,7 +1555,7 @@ static void __init lpc32xx_usb_clk_init(struct device_node *np)
return; return;
} }
for (i = 0; i < LPC32XX_USB_CLK_MAX; i++) { for (i = 1; i < LPC32XX_USB_CLK_MAX; i++) {
usb_clk[i] = lpc32xx_clk_register(i + LPC32XX_CLK_USB_OFFSET); usb_clk[i] = lpc32xx_clk_register(i + LPC32XX_CLK_USB_OFFSET);
if (IS_ERR(usb_clk[i])) { if (IS_ERR(usb_clk[i])) {
pr_err("failed to register %s clock: %ld\n", pr_err("failed to register %s clock: %ld\n",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册