[PATCH 4/4] nios2/serial_altera_jtag.c: switch to ressources

Sascha Hauer s.hauer at pengutronix.de
Tue Jul 26 02:53:18 EDT 2011


On Mon, Jul 25, 2011 at 09:50:20PM +0200, franck.jullien at gmail.com wrote:
> From: Franck Jullien <franck.jullien at gmail.com>
> 
> Signed-off-by: Franck Jullien <franck.jullien at gmail.com>
> ---
>  drivers/serial/serial_altera_jtag.c |    6 +++---
>  1 files changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/drivers/serial/serial_altera_jtag.c b/drivers/serial/serial_altera_jtag.c
> index 322f9e9..7d42382 100644
> --- a/drivers/serial/serial_altera_jtag.c
> +++ b/drivers/serial/serial_altera_jtag.c
> @@ -37,7 +37,7 @@ static int altera_serial_jtag_setbaudrate(struct console_device *cdev, int baudr
>  
>  static void altera_serial_jtag_putc(struct console_device *cdev, char c)
>  {
> -	struct nios_jtag *jtag = (struct nios_jtag *)cdev->dev->map_base;
> +	struct nios_jtag *jtag = (struct nios_jtag *)dev_request_mem_region(cdev->dev, 0);

Same here.

Sascha


-- 
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