]> git.baikalelectronics.ru Git - kernel.git/commit
net: mv643xx_eth: do not use port number as platform device id
authorJonas Gorski <jogo@openwrt.org>
Sun, 7 Jul 2013 22:44:55 +0000 (00:44 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 9 Jul 2013 19:51:47 +0000 (12:51 -0700)
commitf7d0bc8331d03d20e64ff987d603c33c674a667f
treeac6398593dc4eb29b24d7ff590237e2bf9b1941d
parent873b63ac3fa6afd7d3cfb345e384ed7ea5ad8056
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>
drivers/net/ethernet/marvell/mv643xx_eth.c