summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorShawn Guo <shawn.guo@freescale.com>2011-01-05 21:13:10 +0000
committerDavid S. Miller <davem@davemloft.net>2011-01-09 15:42:55 -0800
commit8649a230e33320b00f778a6f7c17a2764e844730 (patch)
tree0384070956fcf781dd83af4543bb607fc1651b8d /include
parent862f0982eadcea0e114576c57ea426d3d51a69a6 (diff)
downloadblackbird-op-linux-8649a230e33320b00f778a6f7c17a2764e844730.tar.gz
blackbird-op-linux-8649a230e33320b00f778a6f7c17a2764e844730.zip
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 <shawn.guo@freescale.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud