summaryrefslogtreecommitdiffstats
path: root/drivers/clk/davinci
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2018-06-02 09:52:56 +0200
committerDavid Lechner <david@lechnology.com>2018-06-26 01:07:02 +0200
commit0613de37373bbbc747d434f643620472bd13303b (patch)
tree96c11ac7790d5ffe916cd4928974042787df881c /drivers/clk/davinci
parentLinux 4.18-rc1 (diff)
downloadlinux-0613de37373bbbc747d434f643620472bd13303b.tar.xz
linux-0613de37373bbbc747d434f643620472bd13303b.zip
clk: davinci: cfgchip: testing the wrong variable
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 <dan.carpenter@oracle.com> Signed-off-by: David Lechner <david@lechnology.com>
Diffstat (limited to 'drivers/clk/davinci')
-rw-r--r--drivers/clk/davinci/da8xx-cfgchip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/davinci/da8xx-cfgchip.c b/drivers/clk/davinci/da8xx-cfgchip.c
index aae62a5b8734..d1bbee19ed0f 100644
--- a/drivers/clk/davinci/da8xx-cfgchip.c
+++ b/drivers/clk/davinci/da8xx-cfgchip.c
@@ -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",