generic: fix mediatek and dsa not detecting mac-addr from nvmem

Nvmem require the device node to be registered with the of_platform.
Register the device node so that nvmem can correctly find the dev and
correctly load the mac-addr stored in the nvmem cell declared in the dts.

Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
This commit is contained in:
Ansuel Smith 2021-07-23 12:43:35 +02:00 committed by Daniel Golle
parent 3cb22b277a
commit 6bc6a41685
4 changed files with 144 additions and 0 deletions