Skip to contentSkip to conversation

Staging: cxt1e1: Fix build error

PATCH In review Javier Martinez Canillas 2 participants 2 messages May 2, 2010 – May 3, 2010 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Staging: cxt1e1: Fix build error

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

---
 drivers/staging/cxt1e1/linux.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/staging/cxt1e1/linux.c +1 -1
index 23e184d..d8ef006 100644
@@ -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;
Signature · 1 line
1.7.0.4
#1 lore raw
Quoted 6 lines · Javier Martinez Canillas

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

It does, but Randy Dunlap sent this fix in on Friday and I applied it already :(

thanks,

greg k-h