From 83ea92e1b22a74f331f24b8f337759ad55514e1b Mon Sep 17 00:00:00 2001 From: Jason Zhu Date: Thu, 18 Jul 2019 20:32:58 +0800 Subject: [PATCH] disk: part: support get part info in spl Change-Id: I79be3609f0a4f9a24cb82c5cb8090bde0eafaf85 Signed-off-by: Jason Zhu --- include/part.h | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/include/part.h b/include/part.h index 287311863c..69ea046ce7 100644 --- a/include/part.h +++ b/include/part.h @@ -231,22 +231,16 @@ static inline int blk_get_device_part_str(const char *ifname, #endif /* - * We don't support printing partition information in SPL and only support - * getting partition information in a few cases. + * We don't support printing partition information in SPL. */ #ifdef CONFIG_SPL_BUILD -# define part_print_ptr(x) NULL -# 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 -# define part_get_info_ptr(x) NULL -# endif +#define part_print_ptr(x) NULL #else -#define part_print_ptr(x) x -#define part_get_info_ptr(x) x +#define part_print_ptr(x) x #endif +#define part_get_info_ptr(x) x + struct part_driver { const char *name;