From: Shawn Guo Date: Wed, 5 Jan 2011 21:13:10 +0000 (+0000) Subject: net/fec: remove the use of "index" which is legacy X-Git-Tag: v2.6.38-rc1~403^2~61 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8649a230e33320b00f778a6f7c17a2764e844730;p=pandora-kernel.git net/fec: remove the use of "index" which is legacy The "index" becomes legacy since fep->pdev->id starts working to identify the instance. Moreover, the call of fec_enet_init(ndev, 0) always passes 0 to fep->index. This makes the following code in fec_get_mac buggy. /* Adjust MAC if using default MAC address */ if (iap == fec_mac_default) dev->dev_addr[ETH_ALEN-1] = fec_mac_default[ETH_ALEN-1] + fep->index; It may be the time to remove "index" and use fep->pdev->id instead. Signed-off-by: Shawn Guo Signed-off-by: David S. Miller --- Reading git-diff-tree failed