mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-06-09 23:36:03 +09:00
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>
This commit is contained in:
parent
439edf6120
commit
14a50e3736
|
@ -132,8 +132,8 @@ static int stm32_fmc_ofdata_to_platdata(struct udevice *dev)
|
||||||
|
|
||||||
static int stm32_fmc_probe(struct udevice *dev)
|
static int stm32_fmc_probe(struct udevice *dev)
|
||||||
{
|
{
|
||||||
#ifdef CONFIG_CLK
|
|
||||||
int ret;
|
int ret;
|
||||||
|
#ifdef CONFIG_CLK
|
||||||
struct clk clk;
|
struct clk clk;
|
||||||
|
|
||||||
ret = clk_get_by_index(dev, 0, &clk);
|
ret = clk_get_by_index(dev, 0, &clk);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user