commit | e68de36072e1b9012bc07fe18f83a6c30ce3d260 | [log] [tgz] |
---|---|---|
author | Ezequiel Garcia <ezequiel.garcia@free-electrons.com> | Thu May 22 20:07:00 2014 -0300 |
committer | David S. Miller <davem@davemloft.net> | Fri May 23 15:31:49 2014 -0400 |
tree | c4151a7e3906f130ae4fe2efb1aba9fad9367664 | |
parent | 9672850be34c1c3db3b98605c0bee9c58545cdca [diff] |
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>