Commit 14a50e37360231a096b4f39be8d64800aecd830c

Authored by Patrice Chotard
Committed by Tom Rini
1 parent 439edf6120

drivers: ram: stm32: fix compilation issue

If CONFIG_CLK flag is not set, compilation raises the
following error message:

drivers/ram/stm32_sdram.c: In function 'stm32_fmc_probe':
drivers/ram/stm32_sdram.c:154:2: error: 'ret' undeclared (first use in this function)
  ret = stm32_sdram_init(dev);

Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
cc: Vikas Manocha <vikas.manocha@st.com>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

drivers/ram/stm32_sdram.c
... ... @@ -132,8 +132,8 @@
132 132  
133 133 static int stm32_fmc_probe(struct udevice *dev)
134 134 {
135   -#ifdef CONFIG_CLK
136 135 int ret;
  136 +#ifdef CONFIG_CLK
137 137 struct clk clk;
138 138  
139 139 ret = clk_get_by_index(dev, 0, &clk);