mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-05-05 04:36:13 +02:00
serial: omap: Fix "unused" warnings with SERIAL_PRESENT=n and OF_REAL=y
The definition of our ID table (and of_to_plat function) is guarded with OF_REAL however the U_BOOT_DRIVER that would in turn use the table is guarded with SERIAL_PRESENT. To avoid a potential warning we must also guard both with SERIAL_PRESENT. Signed-off-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
parent
25d55485db
commit
3fe899fbea
@ -104,7 +104,7 @@ DEBUG_UART_FUNCS
|
||||
|
||||
#if CONFIG_IS_ENABLED(DM_SERIAL)
|
||||
|
||||
#if CONFIG_IS_ENABLED(OF_REAL)
|
||||
#if CONFIG_IS_ENABLED(OF_REAL) && CONFIG_IS_ENABLED(SERIAL_PRESENT)
|
||||
static int omap_serial_of_to_plat(struct udevice *dev)
|
||||
{
|
||||
struct ns16550_plat *plat = dev_get_plat(dev);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user