summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorWang Chen <wangchen@cn.fujitsu.com>2008-12-06 23:58:37 -0800
committerDavid S. Miller <davem@davemloft.net>2008-12-06 23:58:37 -0800
commit979123d5343b4fdcd4c682745b8a0be9b8fac248 (patch)
tree64cb88ca96912ce9f9fd21ecf51a3a100fb9ccf3 /net
parentad660e2f97e7dc9d0f5627456b37e64bde714a5e (diff)
downloadlinux-3.10-979123d5343b4fdcd4c682745b8a0be9b8fac248.tar.gz
linux-3.10-979123d5343b4fdcd4c682745b8a0be9b8fac248.tar.bz2
linux-3.10-979123d5343b4fdcd4c682745b8a0be9b8fac248.zip
staging-p80211: Kill directly reference of netdev->priv
In this driver, netdev's private data is wlandevice_t. And the wlandev(type of wlandevice_t) is exist before netdev be allocated. So use netdev->ml_priv to point to the private data. I am not sure whether I should consider the kernel version older than 2.3.38. Because in those kernels, netdevice_t is "structure dev" instead of "structure net_device" and of course "dev->ml_priv" will cause compile error. But before my patch, in function wlan_setup(), there is a ether_setup(net_device) which already broke kernels which older than 2.3.38. Signed-off-by: Wang Chen <wangchen@cn.fujitsu.com> Acked-by: Greg Kroah-Hartman <gregkh@suse.de> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions