--- zzzz-none-000/linux-4.4.271/include/linux/of_net.h 2021-06-03 06:22:09.000000000 +0000 +++ hawkeye-5590-750/linux-4.4.271/include/linux/of_net.h 2023-04-19 10:22:30.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)