diff options
Diffstat (limited to 'net/core/net-sysfs.c')
-rw-r--r-- | net/core/net-sysfs.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net/core/net-sysfs.c b/net/core/net-sysfs.c index e2137f3e489d..198655dd9a77 100644 --- a/net/core/net-sysfs.c +++ b/net/core/net-sysfs.c | |||
@@ -369,14 +369,14 @@ static struct attribute_group wireless_group = { | |||
369 | #endif | 369 | #endif |
370 | 370 | ||
371 | #ifdef CONFIG_HOTPLUG | 371 | #ifdef CONFIG_HOTPLUG |
372 | static int netdev_hotplug(struct class_device *cd, char **envp, | 372 | static int netdev_uevent(struct class_device *cd, char **envp, |
373 | int num_envp, char *buf, int size) | 373 | int num_envp, char *buf, int size) |
374 | { | 374 | { |
375 | struct net_device *dev = to_net_dev(cd); | 375 | struct net_device *dev = to_net_dev(cd); |
376 | int i = 0; | 376 | int i = 0; |
377 | int n; | 377 | int n; |
378 | 378 | ||
379 | /* pass interface in env to hotplug. */ | 379 | /* pass interface to uevent. */ |
380 | envp[i++] = buf; | 380 | envp[i++] = buf; |
381 | n = snprintf(buf, size, "INTERFACE=%s", dev->name) + 1; | 381 | n = snprintf(buf, size, "INTERFACE=%s", dev->name) + 1; |
382 | buf += n; | 382 | buf += n; |
@@ -408,7 +408,7 @@ static struct class net_class = { | |||
408 | .name = "net", | 408 | .name = "net", |
409 | .release = netdev_release, | 409 | .release = netdev_release, |
410 | #ifdef CONFIG_HOTPLUG | 410 | #ifdef CONFIG_HOTPLUG |
411 | .hotplug = netdev_hotplug, | 411 | .uevent = netdev_uevent, |
412 | #endif | 412 | #endif |
413 | }; | 413 | }; |
414 | 414 | ||