Subject: [PATCH] mpc5xxx_can: Fix typo causing build failure (of_dev -> ofdev)

From: Jeff Mahoney <[email-masked]>
Date: Wed, 13 Apr 2011 10:57:03 -0400

The variable is named ofdev, not of_dev.

Signed-off-by: Jeff Mahoney <[email-masked]>
---
 drivers/net/can/mscan/mpc5xxx_can.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/drivers/net/can/mscan/mpc5xxx_can.c
+++ b/drivers/net/can/mscan/mpc5xxx_can.c
@@ -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) {
-- 
Jeff Mahoney
SUSE Labs