[PATCH 8/8] add a ns16550 registration helper and use it

Sascha Hauer s.hauer at pengutronix.de
Thu Jul 28 04:28:48 EDT 2011


On Thu, Jul 28, 2011 at 10:01:02AM +0200, Sascha Hauer wrote:
> Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
> ---
>  arch/arm/boards/eukrea_cpuimx27/eukrea_cpuimx27.c |   10 +-------
>  arch/arm/boards/omap/board-beagle.c               |   12 ++--------
>  arch/arm/boards/omap/board-omap3evm.c             |   22 ++++++++------------
>  arch/arm/boards/omap/board-sdp343x.c              |   12 ++--------
>  arch/arm/boards/panda/board.c                     |   12 ++--------
>  arch/arm/boards/pcm049/board.c                    |   12 ++--------
>  arch/x86/boards/x86_generic/generic_pc.c          |   15 +++----------
>  include/driver.h                                  |    7 ++++++
>  8 files changed, 34 insertions(+), 68 deletions(-)
> 
> diff --git a/include/driver.h b/include/driver.h
> index af34803..ab2a074 100644
> --- a/include/driver.h
> +++ b/include/driver.h
> @@ -227,6 +227,13 @@ static inline struct device_d *add_cfi_flash_device(int id, resource_size_t star
>  				  IORESOURCE_MEM | flags, NULL);
>  }
>  

We need

struct NS16550_plat;

here to not break compilation. Fixed.

Sascha

> +static inline struct device_d *add_ns16550_device(int id, resource_size_t start,
> +		resource_size_t size, struct NS16550_plat *pdata)
> +{
> +	return add_generic_device("serial_ns16550", id, NULL, start, size,
> +				  IORESOURCE_MEM, pdata);
> +}
> +
>  /* linear list over all available devices
>   */
>  extern struct list_head device_list;
> -- 
> 1.7.5.4
> 
> 

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



More information about the barebox mailing list