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;