From: Wang Chen Date: Sun, 7 Dec 2008 07:58:37 +0000 (-0800) Subject: staging-p80211: Kill directly reference of netdev->priv X-Git-Tag: v2.6.29-rc1~581^2~287 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=979123d5343b4fdcd4c682745b8a0be9b8fac248;p=pandora-kernel.git 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 Acked-by: Greg Kroah-Hartman Signed-off-by: David S. Miller --- Reading git-diff-tree failed