--- zzzz-none-000/linux-4.4.60/include/linux/of_net.h 2017-04-08 07:53:53.000000000 +0000 +++ scorpion-7490-727/linux-4.4.60/include/linux/of_net.h 2021-02-04 17:41:59.000000000 +0000 @@ -13,6 +13,14 @@ struct net_device; extern int of_get_phy_mode(struct device_node *np); extern const void *of_get_mac_address(struct device_node *np); +#ifdef CONFIG_MTD +extern int of_get_mac_address_mtd(struct device_node *np, unsigned char *mac); +#else +static inline int of_get_mac_address_mtd(struct device_node *np, unsigned char *mac) +{ + return -ENOENT; +} +#endif extern struct net_device *of_find_net_device_by_node(struct device_node *np); #else static inline int of_get_phy_mode(struct device_node *np)