commit | 785bf6f7904352242d187ff6087d523a4ce1b3ac | [log] [tgz] |
---|---|---|
author | Jonas Gorski <jogo@openwrt.org> | Mon Jul 08 00:44:55 2013 +0200 |
committer | David S. Miller <davem@davemloft.net> | Tue Jul 09 12:51:47 2013 -0700 |
tree | ac6398593dc4eb29b24d7ff590237e2bf9b1941d | |
parent | 8c2f414ad1b3aa3af05791cd7312eb8ff9d80e0d [diff] |
net: mv643xx_eth: do not use port number as platform device id The port number is only local to the ethernet block, not global, so there can be two ethernet blocks both using the same port, like kirkwood with both using port 0. Fix this by using the array index offset for the allocated platform devices as the id. Signed-off-by: Jonas Gorski <jogo@openwrt.org> Signed-off-by: David S. Miller <davem@davemloft.net>