Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 37725
b: refs/heads/master
c: be618f5
h: refs/heads/master
i:
  37723: 5e36487
v: v3
  • Loading branch information
Amol Lad authored and Linus Torvalds committed Oct 1, 2006
1 parent 0a140ff commit a7b3545
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6257b3bdfde4295c04872d710c2419ff8efc1b86
refs/heads/master: be618f550cb499db263e2ce22c5ad4f4dbfd53e6
11 changes: 10 additions & 1 deletion trunk/drivers/serial/mpc52xx_uart.c
Original file line number Diff line number Diff line change
Expand Up @@ -338,14 +338,23 @@ mpc52xx_uart_release_port(struct uart_port *port)
static int
mpc52xx_uart_request_port(struct uart_port *port)
{
int err;

if (port->flags & UPF_IOREMAP) /* Need to remap ? */
port->membase = ioremap(port->mapbase, MPC52xx_PSC_SIZE);

if (!port->membase)
return -EINVAL;

return request_mem_region(port->mapbase, MPC52xx_PSC_SIZE,
err = request_mem_region(port->mapbase, MPC52xx_PSC_SIZE,
"mpc52xx_psc_uart") != NULL ? 0 : -EBUSY;

if (err && (port->flags & UPF_IOREMAP)) {
iounmap(port->membase);
port->membase = NULL;
}

return err;
}

static void
Expand Down

0 comments on commit a7b3545

Please sign in to comment.