netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jeff Mahoney <jeffm@suse.com>
To: Grant Likely <grant.likely@secretlab.ca>,
	"David S. Miller" <davem@davemloft.net>
Cc: Network Development <netdev@vger.kernel.org>
Subject: [PATCH] mpc5xxx_can: Fix typo causing build failure (of_dev -> ofdev)
Date: Wed, 13 Apr 2011 10:57:03 -0400	[thread overview]
Message-ID: <4DA5B9BF.2010809@suse.com> (raw)

 The variable is named ofdev, not of_dev.

Signed-off-by: Jeff Mahoney <jeffm@suse.com>
---
 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

             reply	other threads:[~2011-04-13 14:57 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-13 14:57 Jeff Mahoney [this message]
2011-04-13 15:13 ` [PATCH] mpc5xxx_can: Fix typo causing build failure (of_dev -> ofdev) Anatolij Gustschin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4DA5B9BF.2010809@suse.com \
    --to=jeffm@suse.com \
    --cc=davem@davemloft.net \
    --cc=grant.likely@secretlab.ca \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).