Skip to contentSkip to conversation

Fix copy-paste bug in mpc52xx_uart.c (pdev<->dev)

PATCH Applied Andrey Volkov 2 participants 2 messages Nov 12, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix copy-paste bug in mpc52xx_uart.c (pdev<->dev)

Russel, in future, please CC such patches
([DRIVER MODEL] Convert platform drivers to use struct platform_driver) to Sylvain Munaut (as MPC52xx mainteiner) too.

---
Regards
Andrey Volkov

Fix copy-paste bug in mpc52xx_uart.c (pdev<->dev)

---

 drivers/serial/mpc52xx_uart.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/serial/mpc52xx_uart.c +2 -2
index 5d3cb84..b8727d9 100644
@@ -725,7 +725,7 @@ mpc52xx_uart_probe(struct platform_devic
 	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_devic
 	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)
Applied
#1 lore raw
Quoted 1 line · Andrey Volkov

Fix copy-paste bug in mpc52xx_uart.c (pdev<->dev)

Applied, thanks.

Signature · 3 lines
Russell King
 Linux kernel    2.6 ARM Linux   - http://www.arm.linux.org.uk/
 maintainer of:  2.6 Serial core