Message ID | 20210913212455.29165-4-trini@konsulko.com |
---|---|
State | Accepted |
Commit | 561d1d3fbaa6879cd5d27a4674a3ca3daf8b0aa3 |
Delegated to: | Tom Rini |
Headers | show |
Series | [1/5] kgdb: Remove unused serial related options | expand |
On Mon, Sep 13, 2021 at 05:24:54PM -0400, Tom Rini wrote: > 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 <sjg@chromium.org> > Signed-off-by: Tom Rini <trini@konsulko.com> Applied to u-boot/next, thanks!
diff --git a/drivers/serial/serial-uclass.c b/drivers/serial/serial-uclass.c index 8171b17faf88..57a784844150 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) {
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 <sjg@chromium.org> Signed-off-by: Tom Rini <trini@konsulko.com> --- drivers/serial/serial-uclass.c | 4 ---- 1 file changed, 4 deletions(-)