OSDN Git Service

net: davinci_emac: Get device dm816x MAC address using the cpsw code
authorTony Lindgren <tony@atomide.com>
Wed, 28 Jan 2015 19:33:05 +0000 (11:33 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 31 Jan 2015 01:42:01 +0000 (17:42 -0800)
commit9120bd6e9f779d921450ec53cea02eff07003eae
tree379d30c613d0287e1c491b915841393c158bba1e
parente5a49c1e3b189c744770e04d2b46ec7ca37d604c
net: davinci_emac: Get device dm816x MAC address using the cpsw code

At least on dm81xx, we can get the davinci_emac MAC address the same
way as on am33xx cpsw.

Let's also use ether_addr_copy() for davinci_emac while at it.

Cc: Brian Hutchinson <b.hutchman@gmail.com>
Cc: Felipe Balbi <balbi@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/davinci_emac.c