summaryrefslogtreecommitdiffstats
path: root/include/linux/of_net.h
diff options
context:
space:
mode:
authorBartosz Golaszewski <bgolaszewski@baylibre.com>2018-11-30 09:20:59 +0100
committerDavid S. Miller <davem@davemloft.net>2018-12-03 15:40:30 -0800
commitafa64a72b862a7a9d04f8d07fba632eaf06b23f8 (patch)
treeb5bad80b1097c321a1c5994171d561ccd0d0ee3d /include/linux/of_net.h
parentcce41b8ffa4b3978dfbcbf3fd2e7397253346245 (diff)
downloadlinux-afa64a72b862a7a9d04f8d07fba632eaf06b23f8.tar.gz
linux-afa64a72b862a7a9d04f8d07fba632eaf06b23f8.tar.bz2
linux-afa64a72b862a7a9d04f8d07fba632eaf06b23f8.zip
of: net: kill of_get_nvmem_mac_address()
We've switched all users to nvmem_get_mac_address(). Remove the now dead code. Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com> Reviewed-by: Rob Herring <robh@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/of_net.h')
-rw-r--r--include/linux/of_net.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/include/linux/of_net.h b/include/linux/of_net.h
index 90d81ee9e6a0..9cd72aab76fe 100644
--- a/include/linux/of_net.h
+++ b/include/linux/of_net.h
@@ -13,7 +13,6 @@
struct net_device;
extern int of_get_phy_mode(struct device_node *np);
extern const void *of_get_mac_address(struct device_node *np);
-extern int of_get_nvmem_mac_address(struct device_node *np, void *addr);
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)
@@ -26,11 +25,6 @@ static inline const void *of_get_mac_address(struct device_node *np)
return NULL;
}
-static inline int of_get_nvmem_mac_address(struct device_node *np, void *addr)
-{
- return -ENODEV;
-}
-
static inline struct net_device *of_find_net_device_by_node(struct device_node *np)
{
return NULL;