From: Tom Rini Date: Mon, 13 Sep 2021 21:24:54 +0000 (-0400) Subject: serial: Remove extraneous SYS_MALLOC_F check X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=561d1d3fbaa6879cd5d27a4674a3ca3daf8b0aa3;p=u-boot.git serial: Remove extraneous SYS_MALLOC_F check We enforce that DM_SERIAL will have SYS_MALLOC_F enabled and so SYS_MALLOC_F_LEN will have a value. Remove the build-time check. Cc: Simon Glass Signed-off-by: Tom Rini --- diff --git a/drivers/serial/serial-uclass.c b/drivers/serial/serial-uclass.c index 8171b17faf..57a7848441 100644 --- a/drivers/serial/serial-uclass.c +++ b/drivers/serial/serial-uclass.c @@ -27,10 +27,6 @@ DECLARE_GLOBAL_DATA_PTR; */ static const unsigned long baudrate_table[] = CONFIG_SYS_BAUDRATE_TABLE; -#if !CONFIG_VAL(SYS_MALLOC_F_LEN) -#error "Serial is required before relocation - define CONFIG_$(SPL_)SYS_MALLOC_F_LEN to make this work" -#endif - #if CONFIG_IS_ENABLED(SERIAL_PRESENT) static int serial_check_stdout(const void *blob, struct udevice **devp) {