Skip to contentSkip to conversation

mpc5xxx_can: Fix typo causing build failure (of_dev -> ofdev)

PATCH In review Jeff Mahoney 2 participants 2 messages Apr 13, 2011

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mpc5xxx_can: Fix typo causing build failure (of_dev -> ofdev)

The variable is named ofdev, not of_dev.

---
 drivers/net/can/mscan/mpc5xxx_can.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/can/mscan/mpc5xxx_can.c +1 -1
@@ -260,7 +260,7 @@ static int __devinit mpc5xxx_can_probe(s
 
 	if (!ofdev->dev.of_match)
 		return -EINVAL;
-	data = (struct mpc5xxx_can_data *)of_dev->dev.of_match->data;
+	data = (struct mpc5xxx_can_data *)ofdev->dev.of_match->data;
 
 	base = of_iomap(np, 0);
 	if (!base) {
Signature · 2 lines
Jeff Mahoney
SUSE Labs