net: sh_eth: Separate out MAC address programming
authorMarek Vasut <[email protected]>
Sun, 21 Jan 2018 13:55:44 +0000 (14:55 +0100)
committerMarek Vasut <[email protected]>
Sat, 27 Jan 2018 19:38:53 +0000 (20:38 +0100)
commit68ac92e9378c3453c86de35df0b6700181f4393b
tree345790df2e9e648092f156e44664d1bd60770c91
parent52c15e220bc28eda298d899f552bc023131de7f3
net: sh_eth: Separate out MAC address programming

Pull out the code for writing MAC address into the NIC into a
separate function, so it can be reused by both DM and non-DM
code. This is done in preparation for DM support, which handles
MAC address programming separately.

Signed-off-by: Marek Vasut <[email protected]>
Cc: Nobuhiro Iwamatsu <[email protected]>
Cc: Joe Hershberger <[email protected]>
drivers/net/sh_eth.c