diff options
Diffstat (limited to 'net/core/net-sysfs.c')
-rw-r--r-- | net/core/net-sysfs.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/net/core/net-sysfs.c b/net/core/net-sysfs.c index 49b599062af1..b4c530065106 100644 --- a/net/core/net-sysfs.c +++ b/net/core/net-sysfs.c | |||
@@ -1478,6 +1478,15 @@ static int of_dev_node_match(struct device *dev, const void *data) | |||
1478 | return ret == 0 ? dev->of_node == data : ret; | 1478 | return ret == 0 ? dev->of_node == data : ret; |
1479 | } | 1479 | } |
1480 | 1480 | ||
1481 | /* | ||
1482 | * of_find_net_device_by_node - lookup the net device for the device node | ||
1483 | * @np: OF device node | ||
1484 | * | ||
1485 | * Looks up the net_device structure corresponding with the device node. | ||
1486 | * If successful, returns a pointer to the net_device with the embedded | ||
1487 | * struct device refcount incremented by one, or NULL on failure. The | ||
1488 | * refcount must be dropped when done with the net_device. | ||
1489 | */ | ||
1481 | struct net_device *of_find_net_device_by_node(struct device_node *np) | 1490 | struct net_device *of_find_net_device_by_node(struct device_node *np) |
1482 | { | 1491 | { |
1483 | struct device *dev; | 1492 | struct device *dev; |