Re: [U-Boot] [PATCH v1 3/7] gpio: atmel_pio4: Remove unneccessary clock calling

2016-09-13 Thread Stephen Warren

On 09/12/2016 07:54 PM, Wenyou Yang wrote:

Due to the peripheral clock driver improvement, remove the
unneccessary clock calling.


Patches 3-7,
Acked-by: Stephen Warren 
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH v1 3/7] gpio: atmel_pio4: Remove unneccessary clock calling

2016-09-12 Thread Wenyou Yang
Due to the peripheral clock driver improvement, remove the
unneccessary clock calling.

Signed-off-by: Wenyou Yang 
---

 drivers/gpio/atmel_pio4.c | 12 
 1 file changed, 12 deletions(-)

diff --git a/drivers/gpio/atmel_pio4.c b/drivers/gpio/atmel_pio4.c
index 7adea88..cb90b02 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, );
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, );
-   if (ret)
-   return ret;
-
-   clk.id = periph;
ret = clk_enable();
if (ret)
return ret;
-- 
2.7.4

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot