mirror of
https://github.com/linux-sunxi/u-boot-sunxi.git
synced 2024-02-12 11:16:03 +08:00
gpio: stm32f7: Remove CONFIG_CLK flag.
As all STM32 SoCs supports CONFIG_CLK flag, it becomes useless in this driver, remove it. Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
This commit is contained in:

committed by
Tom Rini

parent
b2f84e37e2
commit
8b6d45ab64
@ -151,6 +151,7 @@ static int gpio_stm32_probe(struct udevice *dev)
|
|||||||
struct gpio_dev_priv *uc_priv = dev_get_uclass_priv(dev);
|
struct gpio_dev_priv *uc_priv = dev_get_uclass_priv(dev);
|
||||||
struct stm32_gpio_priv *priv = dev_get_priv(dev);
|
struct stm32_gpio_priv *priv = dev_get_priv(dev);
|
||||||
struct ofnode_phandle_args args;
|
struct ofnode_phandle_args args;
|
||||||
|
struct clk clk;
|
||||||
fdt_addr_t addr;
|
fdt_addr_t addr;
|
||||||
const char *name;
|
const char *name;
|
||||||
int ret;
|
int ret;
|
||||||
@ -184,8 +185,6 @@ static int gpio_stm32_probe(struct udevice *dev)
|
|||||||
(u32 *)priv->regs, uc_priv->bank_name, uc_priv->gpio_count,
|
(u32 *)priv->regs, uc_priv->bank_name, uc_priv->gpio_count,
|
||||||
priv->gpio_range);
|
priv->gpio_range);
|
||||||
|
|
||||||
#ifdef CONFIG_CLK
|
|
||||||
struct clk clk;
|
|
||||||
ret = clk_get_by_index(dev, 0, &clk);
|
ret = clk_get_by_index(dev, 0, &clk);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
return ret;
|
return ret;
|
||||||
@ -197,7 +196,6 @@ static int gpio_stm32_probe(struct udevice *dev)
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
debug("clock enabled for device %s\n", dev->name);
|
debug("clock enabled for device %s\n", dev->name);
|
||||||
#endif
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user