summaryrefslogtreecommitdiff
path: root/drivers/usb
diff options
context:
space:
mode:
authorWenyou Yang <wenyou.yang@atmel.com>2016-09-27 11:00:33 +0800
committerAndreas Bießmann <andreas@biessmann.org>2016-10-28 18:37:15 +0200
commitc6a0f7f1356dd68a269dcfa34aae8f75a01ef7fe (patch)
tree011ffdd5af767330f0106dd25f6005d82a0d0e4c /drivers/usb
parent52f37333bc3277cf182e4afb9d59ef2c6f09816e (diff)
usb: ehci-atmel: Remove unnecessary clock calling
Due to the peripheral clock driver improvement, remove the unnecessary clock calling. Signed-off-by: Wenyou Yang <wenyou.yang@atmel.com> Reviewed-by: Andreas Bießmann <andreas@biessmann.org>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/host/ehci-atmel.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/drivers/usb/host/ehci-atmel.c b/drivers/usb/host/ehci-atmel.c
index 2b138c5153..a5c6d34974 100644
--- a/drivers/usb/host/ehci-atmel.c
+++ b/drivers/usb/host/ehci-atmel.c
@@ -56,9 +56,7 @@ struct ehci_atmel_priv {
static int ehci_atmel_enable_clk(struct udevice *dev)
{
- struct udevice *dev_clk;
struct clk clk;
- int periph;
int ret;
ret = clk_get_by_index(dev, 0, &clk);
@@ -73,19 +71,6 @@ static int ehci_atmel_enable_clk(struct udevice *dev)
if (ret)
return -EINVAL;
- periph = fdtdec_get_uint(gd->fdt_blob, clk.dev->of_offset, "reg", -1);
- if (periph < 0)
- return -EINVAL;
-
- dev_clk = dev_get_parent(clk.dev);
- if (!dev_clk)
- return -ENODEV;
-
- ret = clk_request(dev_clk, &clk);
- if (ret)
- return ret;
-
- clk.id = periph;
ret = clk_enable(&clk);
if (ret)
return ret;