X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=include%2Fserial.h;h=5173499124091870efaca83feb615d377054ed34;hb=3ae6abb697b85516975443ca7eac44d18ed4c53f;hp=fbc10365f1ac9071f3565e29b16b59c02144f78a;hpb=d194837fc3042d943ba088fcc221d534330b2872;p=u-boot diff --git a/include/serial.h b/include/serial.h index fbc10365f1..5173499124 100644 --- a/include/serial.h +++ b/include/serial.h @@ -3,10 +3,9 @@ #include -#define NAMESIZE 16 - struct serial_device { - char name[NAMESIZE]; + /* enough bytes to match alignment of following func pointer */ + char name[16]; int (*init) (void); int (*uninit) (void); @@ -32,7 +31,7 @@ extern struct serial_device *default_serial_console(void); defined(CONFIG_MB86R0x) || defined(CONFIG_MPC5xxx) || \ defined(CONFIG_MPC83xx) || defined(CONFIG_MPC85xx) || \ defined(CONFIG_MPC86xx) || defined(CONFIG_SYS_SC520) || \ - defined(CONFIG_TEGRA2) + defined(CONFIG_TEGRA2) || defined(CONFIG_SYS_COREBOOT) extern struct serial_device serial0_device; extern struct serial_device serial1_device; #if defined(CONFIG_SYS_NS16550_SERIAL)