summaryrefslogtreecommitdiff
path: root/drivers/spi
diff options
context:
space:
mode:
authorPatrice Chotard <patrice.chotard@st.com>2018-05-14 15:42:49 +0200
committerJagan Teki <jagan@amarulasolutions.com>2018-05-16 18:41:21 +0530
commit12e7c91a0b7ab05d776a383c525a6bde2f051268 (patch)
tree238ec1e4990763ed65ca08e6361d43d17d870c98 /drivers/spi
parent31dd8efeb661c8dbffff9175a09cf2bab090906a (diff)
spi: stm32_qspi: Remove CONFIG_CLK flag
As all platforms which uses this driver have CONFIG_CLK flag enable in their defconfig, we can remove it from driver code. Signed-off-by: Patrice Chotard <patrice.chotard@st.com> Reviewed-by: Jagan Teki <jagan@openedev.com>
Diffstat (limited to 'drivers/spi')
-rw-r--r--drivers/spi/stm32_qspi.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/spi/stm32_qspi.c b/drivers/spi/stm32_qspi.c
index 7d18012807..41a488097c 100644
--- a/drivers/spi/stm32_qspi.c
+++ b/drivers/spi/stm32_qspi.c
@@ -448,6 +448,8 @@ static int stm32_qspi_probe(struct udevice *bus)
struct stm32_qspi_platdata *plat = dev_get_platdata(bus);
struct stm32_qspi_priv *priv = dev_get_priv(bus);
struct dm_spi_bus *dm_spi_bus;
+ struct clk clk;
+ int ret;
dm_spi_bus = bus->uclass_priv;
@@ -457,9 +459,6 @@ static int stm32_qspi_probe(struct udevice *bus)
priv->max_hz = plat->max_hz;
-#ifdef CONFIG_CLK
- int ret;
- struct clk clk;
ret = clk_get_by_index(bus, 0, &clk);
if (ret < 0)
return ret;
@@ -477,7 +476,6 @@ static int stm32_qspi_probe(struct udevice *bus)
return priv->clock_rate;
}
-#endif
setbits_le32(&priv->regs->cr, STM32_QSPI_CR_SSHIFT);