[SERIAL] Fix mpc52xx_uart.c
authorAndrey Volkov <avolkov@varma-el.com>
Sat, 12 Nov 2005 22:04:06 +0000 (22:04 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 12 Nov 2005 22:04:06 +0000 (22:04 +0000)
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>
drivers/serial/mpc52xx_uart.c

index 5d3cb84864474b0449afc551caf8c2d2aa0c80dd..b8727d9bf690d7322007301c70646d8ebd136860 100644 (file)
@@ -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;
 
@@ -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)