[PATCH] cpm_uart_core.c GCC4.x compilation fix

Kumar Gala kumar.gala at freescale.com
Tue Aug 9 02:59:18 EST 2005


Peter,

Patch looks good.  Can't believe we lost the '=' in the  
initialization.  Will queue this up with a few other CPM_UART related  
patches.

- kumar

On Aug 8, 2005, at 8:57 AM, Schaefer-Hutter, Peter wrote:

> cpm_uart_core.c: needs some love to compile with GCC4.0.1.
>
> Signed-off-by: Peter Schaefer-Hutter
> <peter.schaefer-hutter at tfk-racoms.com>
>
> --- a/drivers/serial/cpm_uart/cpm_uart_core.c    2005-08-08
> 15:49:16.725292392 +0200
> +++ b/drivers/serial/cpm_uart/cpm_uart_core.c    2005-08-08
> 15:33:47.691526992 +0200
> @@ -1134,14 +1134,14 @@
>      return 0;
>  }
>
> -extern struct uart_driver cpm_reg;
> +static struct uart_driver cpm_reg;
>  static struct console cpm_scc_uart_console = {
> -    .name        "ttyCPM",
> -    .write        cpm_uart_console_write,
> -    .device        uart_console_device,
> -    .setup        cpm_uart_console_setup,
> -    .flags        CON_PRINTBUFFER,
> -    .index        -1,
> +    .name        = "ttyCPM",
> +    .write        = cpm_uart_console_write,
> +    .device        = uart_console_device,
> +    .setup        = cpm_uart_console_setup,
> +    .flags        = CON_PRINTBUFFER,
> +    .index        = -1,
>      .data        = &cpm_reg,
>  };
>
> _______________________________________________
> Linuxppc-embedded mailing list
> Linuxppc-embedded at ozlabs.org
> https://ozlabs.org/mailman/listinfo/linuxppc-embedded
>




More information about the Linuxppc-embedded mailing list