]> Git Repo - linux.git/commitdiff
clk: davinci: cfgchip: testing the wrong variable
authorDan Carpenter <[email protected]>
Sat, 2 Jun 2018 07:52:56 +0000 (10:52 +0300)
committerDavid Lechner <[email protected]>
Mon, 25 Jun 2018 23:07:02 +0000 (18:07 -0500)
There is a copy and paste bug here.  We should be testing "usb1" instead
of "usb0".

Fixes: 58e1e2d2cd89 ("clk: davinci: cfgchip: Add TI DA8XX USB PHY clocks")
Signed-off-by: Dan Carpenter <[email protected]>
Signed-off-by: David Lechner <[email protected]>
drivers/clk/davinci/da8xx-cfgchip.c

index aae62a5b8734e859e76a16f995b05f43bf5f9b4a..d1bbee19ed0fcf74edfb2019fc4907ba00533a66 100644 (file)
@@ -672,7 +672,7 @@ static int of_da8xx_usb_phy_clk_init(struct device *dev, struct regmap *regmap)
 
        usb1 = da8xx_cfgchip_register_usb1_clk48(dev, regmap);
        if (IS_ERR(usb1)) {
-               if (PTR_ERR(usb0) == -EPROBE_DEFER)
+               if (PTR_ERR(usb1) == -EPROBE_DEFER)
                        return -EPROBE_DEFER;
 
                dev_warn(dev, "Failed to register usb1_clk48 (%ld)\n",
This page took 0.061672 seconds and 4 git commands to generate.