poplar: fix build error with POPLAR_RECOVERY=1
authorShawn Guo <shawn.guo@linaro.org>
Thu, 27 Sep 2018 08:48:00 +0000 (16:48 +0800)
committerShawn Guo <shawn.guo@linaro.org>
Thu, 27 Sep 2018 09:04:46 +0000 (17:04 +0800)
commitd5ed2946407c08cc57cd14eec51517fc5fa0cec4
tree8956b87549c713406107e0325f012bfe57aeb639
parent9068257ea7e0242214f9e833410d9b3fc8bcbe45
poplar: fix build error with POPLAR_RECOVERY=1

Commit eba1b6b3c724 ("plat/poplar: migrate to mmc framework") defines
variable 'info' without !POPLAR_RECOVERY protection, and hence causes
the following unused variable error with POPLAR_RECOVERY=1 build.

plat/hisilicon/poplar/bl1_plat_setup.c: In function ‘bl1_platform_setup’:
plat/hisilicon/poplar/bl1_plat_setup.c:95:25: error: unused variable ‘info’ [-Werror=unused-variable]
  struct mmc_device_info info;
                         ^~~~

The patches fixes the build error with POPLAR_RECOVERY=1.

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
plat/hisilicon/poplar/bl1_plat_setup.c
plat/hisilicon/poplar/bl2_plat_setup.c