diff options
author | Randy Dunlap <randy.dunlap@oracle.com> | 2010-04-30 10:07:12 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-05-11 11:35:57 -0700 |
commit | d87d909a45b7b6bf411559e85d386ef0a2f4bbae (patch) | |
tree | 35a47e726103703e4893ad2de09e661d5074219f | |
parent | c849d2538ebeef1ac26fad7a10c18b1e0fc35161 (diff) |
Staging: cxt1e1: use netdev_priv to fix build
Fix cxt1e1 build error:
drivers/staging/cxt1e1/linux.c:1195: error: 'struct net_device' has no member named 'priv'
Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Acked-by: Bob Beers <bob.beers@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r-- | 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 23e184da9723..aee7018f9d3f 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; |