]> git.baikalelectronics.ru Git - uboot.git/commit
arch/arm/cpu/arm926ejs/spear/cpu.c: guard do_switch_ecc() with CONFIG_NAND_FSMC
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 15 Aug 2017 20:52:45 +0000 (22:52 +0200)
committerTom Rini <trini@konsulko.com>
Sat, 26 Aug 2017 18:56:10 +0000 (14:56 -0400)
commit7eb6d66fa11e0eafec6658863faf89ba66c9f2ed
treea9dde9441b65576a0d6a6a0b119ca5d3b0e59c03
parente29c990ac24f6199e5c5d1046e1b4c2447cc9f3d
arch/arm/cpu/arm926ejs/spear/cpu.c: guard do_switch_ecc() with CONFIG_NAND_FSMC

do_switch_ecc() calls fsmc_nand_switch_ecc(), which is a direct
function call into drivers/mtd/nand/fsmc_nand.c. However, this
function is not guarded by CONFIG_NAND_FSMC, which results to a build
failure if CONFIG_NAND_FSMC is disabled.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
arch/arm/cpu/arm926ejs/spear/cpu.c