diff options
-rw-r--r-- | net/core/net-sysfs.c | 4 | ||||
-rw-r--r-- | net/wireless/reg.c | 7 | ||||
-rw-r--r-- | net/wireless/sysfs.c | 4 |
3 files changed, 0 insertions, 15 deletions
diff --git a/net/core/net-sysfs.c b/net/core/net-sysfs.c index 334efd5d67a9..28c5f5aa7ca7 100644 --- a/net/core/net-sysfs.c +++ b/net/core/net-sysfs.c | |||
@@ -1334,7 +1334,6 @@ struct kobj_ns_type_operations net_ns_type_operations = { | |||
1334 | }; | 1334 | }; |
1335 | EXPORT_SYMBOL_GPL(net_ns_type_operations); | 1335 | EXPORT_SYMBOL_GPL(net_ns_type_operations); |
1336 | 1336 | ||
1337 | #ifdef CONFIG_HOTPLUG | ||
1338 | static int netdev_uevent(struct device *d, struct kobj_uevent_env *env) | 1337 | static int netdev_uevent(struct device *d, struct kobj_uevent_env *env) |
1339 | { | 1338 | { |
1340 | struct net_device *dev = to_net_dev(d); | 1339 | struct net_device *dev = to_net_dev(d); |
@@ -1353,7 +1352,6 @@ static int netdev_uevent(struct device *d, struct kobj_uevent_env *env) | |||
1353 | exit: | 1352 | exit: |
1354 | return retval; | 1353 | return retval; |
1355 | } | 1354 | } |
1356 | #endif | ||
1357 | 1355 | ||
1358 | /* | 1356 | /* |
1359 | * netdev_release -- destroy and free a dead device. | 1357 | * netdev_release -- destroy and free a dead device. |
@@ -1382,9 +1380,7 @@ static struct class net_class = { | |||
1382 | #ifdef CONFIG_SYSFS | 1380 | #ifdef CONFIG_SYSFS |
1383 | .dev_attrs = net_class_attributes, | 1381 | .dev_attrs = net_class_attributes, |
1384 | #endif /* CONFIG_SYSFS */ | 1382 | #endif /* CONFIG_SYSFS */ |
1385 | #ifdef CONFIG_HOTPLUG | ||
1386 | .dev_uevent = netdev_uevent, | 1383 | .dev_uevent = netdev_uevent, |
1387 | #endif | ||
1388 | .ns_type = &net_ns_type_operations, | 1384 | .ns_type = &net_ns_type_operations, |
1389 | .namespace = net_namespace, | 1385 | .namespace = net_namespace, |
1390 | }; | 1386 | }; |
diff --git a/net/wireless/reg.c b/net/wireless/reg.c index 6e5308998e30..82c4fc7c994c 100644 --- a/net/wireless/reg.c +++ b/net/wireless/reg.c | |||
@@ -2365,7 +2365,6 @@ int set_regdom(const struct ieee80211_regdomain *rd) | |||
2365 | return r; | 2365 | return r; |
2366 | } | 2366 | } |
2367 | 2367 | ||
2368 | #ifdef CONFIG_HOTPLUG | ||
2369 | int reg_device_uevent(struct device *dev, struct kobj_uevent_env *env) | 2368 | int reg_device_uevent(struct device *dev, struct kobj_uevent_env *env) |
2370 | { | 2369 | { |
2371 | if (last_request && !last_request->processed) { | 2370 | if (last_request && !last_request->processed) { |
@@ -2377,12 +2376,6 @@ int reg_device_uevent(struct device *dev, struct kobj_uevent_env *env) | |||
2377 | 2376 | ||
2378 | return 0; | 2377 | return 0; |
2379 | } | 2378 | } |
2380 | #else | ||
2381 | int reg_device_uevent(struct device *dev, struct kobj_uevent_env *env) | ||
2382 | { | ||
2383 | return -ENODEV; | ||
2384 | } | ||
2385 | #endif /* CONFIG_HOTPLUG */ | ||
2386 | 2379 | ||
2387 | void wiphy_regulatory_register(struct wiphy *wiphy) | 2380 | void wiphy_regulatory_register(struct wiphy *wiphy) |
2388 | { | 2381 | { |
diff --git a/net/wireless/sysfs.c b/net/wireless/sysfs.c index 9bf6d5e32166..1f6f01e2dc4c 100644 --- a/net/wireless/sysfs.c +++ b/net/wireless/sysfs.c | |||
@@ -77,13 +77,11 @@ static void wiphy_dev_release(struct device *dev) | |||
77 | cfg80211_dev_free(rdev); | 77 | cfg80211_dev_free(rdev); |
78 | } | 78 | } |
79 | 79 | ||
80 | #ifdef CONFIG_HOTPLUG | ||
81 | static int wiphy_uevent(struct device *dev, struct kobj_uevent_env *env) | 80 | static int wiphy_uevent(struct device *dev, struct kobj_uevent_env *env) |
82 | { | 81 | { |
83 | /* TODO, we probably need stuff here */ | 82 | /* TODO, we probably need stuff here */ |
84 | return 0; | 83 | return 0; |
85 | } | 84 | } |
86 | #endif | ||
87 | 85 | ||
88 | static int wiphy_suspend(struct device *dev, pm_message_t state) | 86 | static int wiphy_suspend(struct device *dev, pm_message_t state) |
89 | { | 87 | { |
@@ -134,9 +132,7 @@ struct class ieee80211_class = { | |||
134 | .owner = THIS_MODULE, | 132 | .owner = THIS_MODULE, |
135 | .dev_release = wiphy_dev_release, | 133 | .dev_release = wiphy_dev_release, |
136 | .dev_attrs = ieee80211_dev_attrs, | 134 | .dev_attrs = ieee80211_dev_attrs, |
137 | #ifdef CONFIG_HOTPLUG | ||
138 | .dev_uevent = wiphy_uevent, | 135 | .dev_uevent = wiphy_uevent, |
139 | #endif | ||
140 | .suspend = wiphy_suspend, | 136 | .suspend = wiphy_suspend, |
141 | .resume = wiphy_resume, | 137 | .resume = wiphy_resume, |
142 | .ns_type = &net_ns_type_operations, | 138 | .ns_type = &net_ns_type_operations, |