diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/core/net-sysfs.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/net/core/net-sysfs.c b/net/core/net-sysfs.c index dccd737ea2e3..3f7941319217 100644 --- a/net/core/net-sysfs.c +++ b/net/core/net-sysfs.c | |||
@@ -468,6 +468,19 @@ int netdev_register_kobject(struct net_device *net) | |||
468 | return device_add(dev); | 468 | return device_add(dev); |
469 | } | 469 | } |
470 | 470 | ||
471 | int netdev_class_create_file(struct class_attribute *class_attr) | ||
472 | { | ||
473 | return class_create_file(&net_class, class_attr); | ||
474 | } | ||
475 | |||
476 | void netdev_class_remove_file(struct class_attribute *class_attr) | ||
477 | { | ||
478 | class_remove_file(&net_class, class_attr); | ||
479 | } | ||
480 | |||
481 | EXPORT_SYMBOL(netdev_class_create_file); | ||
482 | EXPORT_SYMBOL(netdev_class_remove_file); | ||
483 | |||
471 | void netdev_initialize_kobject(struct net_device *net) | 484 | void netdev_initialize_kobject(struct net_device *net) |
472 | { | 485 | { |
473 | struct device *device = &(net->dev); | 486 | struct device *device = &(net->dev); |