diff options
| author | Patrice Chotard <[email protected]> | 2017-05-30 15:06:31 +0200 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2017-06-05 14:13:13 -0400 |
| commit | 14a50e37360231a096b4f39be8d64800aecd830c (patch) | |
| tree | d127baa90009c248c6a48844c07dd4939a01613f /drivers | |
| parent | 439edf612047f343737a449e072898b8c6a0b515 (diff) | |
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 <[email protected]>
cc: Vikas Manocha <[email protected]>
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/ram/stm32_sdram.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ram/stm32_sdram.c b/drivers/ram/stm32_sdram.c index b640519555d..902de2b6c47 100644 --- a/drivers/ram/stm32_sdram.c +++ b/drivers/ram/stm32_sdram.c @@ -132,8 +132,8 @@ static int stm32_fmc_ofdata_to_platdata(struct udevice *dev) static int stm32_fmc_probe(struct udevice *dev) { -#ifdef CONFIG_CLK int ret; +#ifdef CONFIG_CLK struct clk clk; ret = clk_get_by_index(dev, 0, &clk); |
