From: Randy Dunlap Date: Fri, 30 Apr 2010 17:07:12 +0000 (-0700) Subject: Staging: cxt1e1: use netdev_priv to fix build X-Git-Tag: MMI-PSA29.97-13-9~23841^2^2~317 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d87d909a45b7b6bf411559e85d386ef0a2f4bbae;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 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 Acked-by: Bob Beers Signed-off-by: Greg Kroah-Hartman --- 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;