net: mvneta: Use prepare/commit API to simplify MAC address setting
authorEzequiel Garcia <ezequiel.garcia@free-electrons.com>
Thu, 22 May 2014 23:07:00 +0000 (20:07 -0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 23 May 2014 19:31:49 +0000 (15:31 -0400)
commite68de36072e1b9012bc07fe18f83a6c30ce3d260
treec4151a7e3906f130ae4fe2efb1aba9fad9367664
parent9672850be34c1c3db3b98605c0bee9c58545cdca
net: mvneta: Use prepare/commit API to simplify MAC address setting

Use eth_prepare_mac_addr_change and eth_commit_mac_addr_change, instead
of manually checking and storing the MAC address, which makes the
code slightly more robust. This fixes the lack of valid MAC address check
in the driver's .ndo_set_mac_address hook.

Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/mvneta.c