summaryrefslogtreecommitdiff
path: root/drivers/gpio
diff options
context:
space:
mode:
authorWenyou Yang <wenyou.yang@atmel.com>2016-09-27 11:00:30 +0800
committerAndreas Bießmann <andreas@biessmann.org>2016-10-28 18:37:14 +0200
commitd85d92ae7b25ea8d824494a7460f27b2c72cb5ca (patch)
treecdb730f7824c0896d2f8f2dc9cfb5e18565fe1e0 /drivers/gpio
parent6cadaa046b196bebebd7acb13edd840bcfef98e2 (diff)
downloadu-boot-d85d92ae7b25ea8d824494a7460f27b2c72cb5ca.tar.gz
u-boot-d85d92ae7b25ea8d824494a7460f27b2c72cb5ca.tar.bz2
u-boot-d85d92ae7b25ea8d824494a7460f27b2c72cb5ca.zip
gpio: atmel_pio4: 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> Acked-by: Stephen Warren <swarren@nvidia.com>
Diffstat (limited to 'drivers/gpio')
-rw-r--r--drivers/gpio/atmel_pio4.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/drivers/gpio/atmel_pio4.c b/drivers/gpio/atmel_pio4.c
index 7adea88565..cb90b0241a 100644
--- a/drivers/gpio/atmel_pio4.c
+++ b/drivers/gpio/atmel_pio4.c
@@ -284,27 +284,15 @@ static int atmel_pio4_probe(struct udevice *dev)
struct atmel_pio4_platdata *plat = dev_get_platdata(dev);
struct gpio_dev_priv *uc_priv = dev_get_uclass_priv(dev);
struct atmel_pioctrl_data *pioctrl_data;
- struct udevice *dev_clk;
struct clk clk;
fdt_addr_t addr_base;
u32 nbanks;
- int periph;
int ret;
ret = clk_get_by_index(dev, 0, &clk);
if (ret)
return ret;
- 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);
- ret = clk_request(dev_clk, &clk);
- if (ret)
- return ret;
-
- clk.id = periph;
ret = clk_enable(&clk);
if (ret)
return ret;