Message ID | 20230519104359.2048821-10-lukma@denx.de |
---|---|
State | Accepted |
Commit | fdef5e1502a6b847acf3252c0f21739a3a4e181c |
Delegated to: | Stefano Babic |
Headers | show |
Series | arm: xea: Update i.MX28 XEA board to use DM_SERIAL | expand |
> Before this change, building this driver for SPL with enabled SPL_DM_SERIAL > was problematic, as '-Wunused-const-variable=' warning was visible. > Now, the code is only considered when u-boot proper is build. > Signed-off-by: Lukasz Majewski <lukma@denx.de> Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic
diff --git a/drivers/serial/serial_pl01x.c b/drivers/serial/serial_pl01x.c index f5468353e1..18332c2192 100644 --- a/drivers/serial/serial_pl01x.c +++ b/drivers/serial/serial_pl01x.c @@ -331,7 +331,7 @@ static const struct dm_serial_ops pl01x_serial_ops = { .setbrg = pl01x_serial_setbrg, }; -#if CONFIG_IS_ENABLED(OF_CONTROL) +#if CONFIG_IS_ENABLED(OF_REAL) static const struct udevice_id pl01x_serial_id[] ={ {.compatible = "arm,pl011", .data = TYPE_PL011}, {.compatible = "arm,pl010", .data = TYPE_PL010},
Before this change, building this driver for SPL with enabled SPL_DM_SERIAL was problematic, as '-Wunused-const-variable=' warning was visible. Now, the code is only considered when u-boot proper is build. Signed-off-by: Lukasz Majewski <lukma@denx.de> --- drivers/serial/serial_pl01x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)