Message ID | 20110516144647.13838.40897.stgit@localhost6.localdomain6 |
---|---|
State | Rejected, archived |
Delegated to: | David Miller |
Headers | show |
diff --git a/net/core/dev.c b/net/core/dev.c index 856b6ee..80cfa23 100644 --- a/net/core/dev.c +++ b/net/core/dev.c @@ -5454,6 +5454,9 @@ int register_netdevice(struct net_device *dev) rollback_registered(dev); dev->reg_state = NETREG_UNREGISTERED; } + + device_uevent(&(dev->dev)); + /* * Prevent userspace races by waiting until the network * device is fully setup before sending notifications. diff --git a/net/core/net-sysfs.c b/net/core/net-sysfs.c index 5ceb257..c10b1d5 100644 --- a/net/core/net-sysfs.c +++ b/net/core/net-sysfs.c @@ -1337,7 +1337,7 @@ int netdev_register_kobject(struct net_device *net) #endif #endif /* CONFIG_SYSFS */ - error = device_add(dev); + error = device_add_noevent(dev); if (error) return error;