mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Javier Martinez Canillas <martinez.javier@gmail.com>
To: Greg Kroah-Hartman <gregkh@suse.de>,
	Bob Beers <bob.beers@gmail.com>,
	devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org
Subject: [PATCH] Staging: cxt1e1: Fix build error
Date: Sun, 02 May 2010 11:56:53 -0400	[thread overview]
Message-ID: <1272815813.16886.5.camel@lenovo> (raw)

With today linux-next I got this compilation error:

drivers/staging/cxt1e1/linux.c: In function ‘c4_add_dev’:
drivers/staging/cxt1e1/linux.c:1195: error: ‘struct net_device’ has no member named ‘priv’

I think this patch solves the issue

Signed-off-by: Javier Martinez Canillas <martinez.javier@gmail.com>
---
 drivers/staging/cxt1e1/linux.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/staging/cxt1e1/linux.c b/drivers/staging/cxt1e1/linux.c
index 23e184d..d8ef006 100644
--- a/drivers/staging/cxt1e1/linux.c
+++ b/drivers/staging/cxt1e1/linux.c
@@ -1192,7 +1192,7 @@ c4_add_dev (hdw_info_t * hi, int brdno, unsigned long f0, unsigned long f1,
                 hi->devname, irq1);
         unregister_netdev (ndev);
         free_irq (irq0, ndev);
-        OS_kfree (ndev->priv);
+	OS_kfree(netdev_priv(ndev));
         OS_kfree (ndev);
         error_flag = EIO;
         return 0;
-- 
1.7.0.4






             reply	other threads:[~2010-05-02 15:57 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-02 15:56 Javier Martinez Canillas [this message]
2010-05-03 18:49 ` Greg KH

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=1272815813.16886.5.camel@lenovo \
    --to=martinez.javier@gmail.com \
    --cc=bob.beers@gmail.com \
    --cc=devel@driverdev.osuosl.org \
    --cc=gregkh@suse.de \
    --cc=linux-kernel@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

all inboxes | Powered by JetHome®