Re: [PATCH 2/2] bcm63xx_uart: allow more than one uart to be registered.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, Jan 30, 2010 at 06:42:57PM +0100, Maxime Bizon wrote:
> The bcm6358 CPU has two uarts, make it possible to use the second one.
> 
> Signed-off-by: Maxime Bizon <mbizon@xxxxxxxxxx>
> ---
>  drivers/serial/bcm63xx_uart.c |    5 +++--
>  1 files changed, 3 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/serial/bcm63xx_uart.c b/drivers/serial/bcm63xx_uart.c
> index f78ede8..6ab959a 100644
> --- a/drivers/serial/bcm63xx_uart.c
> +++ b/drivers/serial/bcm63xx_uart.c
> @@ -35,7 +35,7 @@
>  #include <bcm63xx_regs.h>
>  #include <bcm63xx_io.h>
>  
> -#define BCM63XX_NR_UARTS	1
> +#define BCM63XX_NR_UARTS	2
>  
>  static struct uart_port ports[BCM63XX_NR_UARTS];
>  
> @@ -784,7 +784,7 @@ static struct uart_driver bcm_uart_driver = {
>  	.dev_name	= "ttyS",
>  	.major		= TTY_MAJOR,
>  	.minor		= 64,
> -	.nr		= 1,
> +	.nr		= 2,

Err, why not using the #define here?

Regards,

   Wolfram

-- 
Pengutronix e.K.                           | Wolfram Sang                |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |

Attachment: signature.asc
Description: Digital signature


[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux