Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
of: net: move nvmem_get_mac_address() into of_get_mac_addr_nvmem()
nvmem_get_mac_address() is only called by of_get_mac_addr_nvmem(), and they use almost the same code. so move nvmem_get_mac_address() into of_get_mac_addr_nvmem(). In addition, prefer ether_addr_copy() over memcpy() if the ethernet addresses are __aligned(2). Signed-off-by: Yajun Deng <yajun.deng@linux.dev>
- Loading branch information