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

Commit 4db9a9ba authored by Sylvain Lemieux's avatar Sylvain Lemieux Committed by Stephen Boyd
Browse files

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: default avatarSylvain Lemieux <slemieux@tycoint.com>
Acked-by: default avatarVladimir Zapolskiy <vz@mleia.com>
[sboyd@codeaurora.org: s/prepare/register/]
Signed-off-by: default avatarStephen Boyd <sboyd@codeaurora.org>
parent 2430a94d
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1515,7 +1515,7 @@ static void __init lpc32xx_clk_init(struct device_node *np)
		return;
	}

	for (i = 0; i < LPC32XX_CLK_MAX; i++) {
	for (i = 1; i < LPC32XX_CLK_MAX; i++) {
		clk[i] = lpc32xx_clk_register(i);
		if (IS_ERR(clk[i])) {
			pr_err("failed to register %s clock: %ld\n",
@@ -1555,7 +1555,7 @@ static void __init lpc32xx_usb_clk_init(struct device_node *np)
		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);
		if (IS_ERR(usb_clk[i])) {
			pr_err("failed to register %s clock: %ld\n",