diff options
author | Sean Anderson <seanga2@gmail.com> | 2022-01-15 17:25:01 -0500 |
---|---|---|
committer | Sean Anderson <seanga2@gmail.com> | 2022-03-30 13:02:55 -0400 |
commit | ad20358c7462159d5f9012facba9dec1e197aaca (patch) | |
tree | 9ad0a6509ea18ff61f76af3ce465974a02b5e169 | |
parent | b2e0889abacfd453131359156fe279996727d95b (diff) | |
download | u-boot-ad20358c7462159d5f9012facba9dec1e197aaca.zip u-boot-ad20358c7462159d5f9012facba9dec1e197aaca.tar.gz u-boot-ad20358c7462159d5f9012facba9dec1e197aaca.tar.bz2 |
phy: bcm63xx: Don't check clk_free
This function always succeeds, so don't check its return value.
Signed-off-by: Sean Anderson <seanga2@gmail.com>
Link: https://lore.kernel.org/r/20220115222504.617013-5-seanga2@gmail.com
-rw-r--r-- | drivers/phy/bcm6318-usbh-phy.c | 4 | ||||
-rw-r--r-- | drivers/phy/bcm6348-usbh-phy.c | 4 | ||||
-rw-r--r-- | drivers/phy/bcm6368-usbh-phy.c | 8 |
3 files changed, 4 insertions, 12 deletions
diff --git a/drivers/phy/bcm6318-usbh-phy.c b/drivers/phy/bcm6318-usbh-phy.c index 60608a5..1c10853 100644 --- a/drivers/phy/bcm6318-usbh-phy.c +++ b/drivers/phy/bcm6318-usbh-phy.c @@ -98,9 +98,7 @@ static int bcm6318_usbh_probe(struct udevice *dev) if (ret < 0) return ret; - ret = clk_free(&clk); - if (ret < 0) - return ret; + clk_free(&clk); /* enable power domain */ ret = power_domain_get(dev, &pwr_dom); diff --git a/drivers/phy/bcm6348-usbh-phy.c b/drivers/phy/bcm6348-usbh-phy.c index 1b6b5ad..ce6be3d 100644 --- a/drivers/phy/bcm6348-usbh-phy.c +++ b/drivers/phy/bcm6348-usbh-phy.c @@ -62,9 +62,7 @@ static int bcm6348_usbh_probe(struct udevice *dev) if (ret < 0) return ret; - ret = clk_free(&clk); - if (ret < 0) - return ret; + clk_free(&clk); /* perform reset */ ret = reset_get_by_index(dev, 0, &rst_ctl); diff --git a/drivers/phy/bcm6368-usbh-phy.c b/drivers/phy/bcm6368-usbh-phy.c index 4d3a63f..d057f1f 100644 --- a/drivers/phy/bcm6368-usbh-phy.c +++ b/drivers/phy/bcm6368-usbh-phy.c @@ -137,9 +137,7 @@ static int bcm6368_usbh_probe(struct udevice *dev) if (ret < 0) return ret; - ret = clk_free(&clk); - if (ret < 0) - return ret; + clk_free(&clk); #if defined(CONFIG_POWER_DOMAIN) /* enable power domain */ @@ -176,9 +174,7 @@ static int bcm6368_usbh_probe(struct udevice *dev) if (ret < 0) return ret; - ret = clk_free(&clk); - if (ret < 0) - return ret; + clk_free(&clk); } mdelay(100); |