]> git.sur5r.net Git - u-boot/commitdiff
disk: part: Enable get_info pointer for CONFIG_SPL_FAT_SUPPORT
authorMichal Simek <michal.simek@xilinx.com>
Tue, 5 Apr 2016 11:34:20 +0000 (13:34 +0200)
committerTom Rini <trini@konsulko.com>
Tue, 12 Apr 2016 00:48:24 +0000 (20:48 -0400)
The patch "dm: part: Convert partition API use to linker lists"
(sha1: 96e5b03c8ab749b6547f6a3ceb4d4b9f274211aa) is adding new
dependency for enabling SPL_EXT_SUPPORT to be able to get
information about DOS partition.
get_info is also required for FAT support only which is used on Xilinx
Zynq boards.

Reported-by: Nathan Rossi <nathan@nathanrossi.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
include/part.h

index dc8e72e08f6da82be14305f3e32cdce83ea280e0..e3811c68de8a31c3bf3daddad1d87f9e3187334a 100644 (file)
@@ -207,7 +207,7 @@ static inline int blk_get_device_part_str(const char *ifname,
  */
 #ifdef CONFIG_SPL_BUILD
 # define part_print_ptr(x)     NULL
-# if defined(CONFIG_SPL_EXT_SUPPORT) || \
+# if defined(CONFIG_SPL_EXT_SUPPORT) || defined(CONFIG_SPL_FAT_SUPPORT) || \
        defined(CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION)
 #  define part_get_info_ptr(x) x
 # else