mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
Kobject: change net/bridge to use kobject_create_and_add
The kobject in the bridge code is only used for registering with sysfs, not for any lifespan rules. This patch changes it to be only a pointer and use the simpler api for this kind of thing. Cc: Stephen Hemminger <shemminger@linux-foundation.org> Cc: Kay Sievers <kay.sievers@vrfy.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
81e7c6a636
commit
43b98c4a66
4 changed files with 7 additions and 13 deletions
|
@ -133,7 +133,7 @@ static void del_nbp(struct net_bridge_port *p)
|
|||
struct net_bridge *br = p->br;
|
||||
struct net_device *dev = p->dev;
|
||||
|
||||
sysfs_remove_link(&br->ifobj, dev->name);
|
||||
sysfs_remove_link(br->ifobj, dev->name);
|
||||
|
||||
dev_set_promiscuity(dev, -1);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue