Skip to content

Commit

Permalink
[SERIAL] Fix mpc52xx_uart.c
Browse files Browse the repository at this point in the history
Fix copy-paste bug in mpc52xx_uart.c (pdev<->dev)

Signed-off-by: Andrey Volkov <avolkov@varma-el.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
Andrey Volkov authored and Russell King committed Nov 12, 2005
1 parent 4667773 commit 38801e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/serial/mpc52xx_uart.c
Original file line number Diff line number Diff line change
Expand Up @@ -725,7 +725,7 @@ mpc52xx_uart_probe(struct platform_device *dev)
int i, idx, ret;

/* Check validity & presence */
idx = pdev->id;
idx = dev->id;
if (idx < 0 || idx >= MPC52xx_PSC_MAXNUM)
return -EINVAL;

Expand All @@ -748,7 +748,7 @@ mpc52xx_uart_probe(struct platform_device *dev)
port->ops = &mpc52xx_uart_ops;

/* Search for IRQ and mapbase */
for (i=0 ; i<pdev->num_resources ; i++, res++) {
for (i=0 ; i<dev->num_resources ; i++, res++) {
if (res->flags & IORESOURCE_MEM)
port->mapbase = res->start;
else if (res->flags & IORESOURCE_IRQ)
Expand Down

0 comments on commit 38801e2

Please sign in to comment.