From: Yoann Padioleau Date: Fri, 3 Aug 2007 17:37:16 +0000 (+0200) Subject: [PATCH] dev->priv to netdev_priv(dev), for drivers/net/wireless X-Git-Tag: v2.6.24-rc1~1454^2~649 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6dbc9c89fb242873bd3e83890e59da3d6e462025;p=pandora-kernel.git [PATCH] dev->priv to netdev_priv(dev), for drivers/net/wireless Replacing accesses to dev->priv to netdev_priv(dev). The replacment is safe when netdev_priv is used to access a private structure that is right next to the net_device structure in memory. Cf http://groups.google.com/group/comp.os.linux.development.system/browse_thread/thread/de19321bcd94dbb8/0d74a4adcd6177bd This is the case when the net_device structure was allocated with a call to alloc_netdev or one of its derivative. Signed-off-by: Yoann Padioleau Cc: mcgrof@gmail.com Cc: linux-wireless@vger.kernel.org Cc: akpm@linux-foundation.org Signed-off-by: John W. Linville --- Reading git-diff-tree failed