]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commitdiff
clk: lpc32xx: do not register clock "0"
authorSylvain Lemieux <slemieux@tycoint.com>
Tue, 9 Feb 2016 18:29:10 +0000 (13:29 -0500)
committerStephen Boyd <sboyd@codeaurora.org>
Wed, 10 Feb 2016 00:19:34 +0000 (16:19 -0800)
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: Sylvain Lemieux <slemieux@tycoint.com>
Acked-by: Vladimir Zapolskiy <vz@mleia.com>
[sboyd@codeaurora.org: s/prepare/register/]
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/nxp/clk-lpc32xx.c

index 10dd0fdaa474b2fcac7fa917d95e6fce890fba6f..981ff0dd88b4a2f929e659b8c0bcb9f2c26a3d49 100644 (file)
@@ -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",