summaryrefslogtreecommitdiff
path: root/kernel/kmod.c
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2004-10-31 21:06:49 -0800
committerGreg Kroah-Hartman <greg@kroah.com>2004-10-31 21:06:49 -0800
commit6f1780569c67765e1fef8754fc1812714b85e4d0 (patch)
treec47aa542f4209b1349131263bc10f222a64d23b5 /kernel/kmod.c
parente07d4e6100616189478dda62e0a261760f2cf4ff (diff)
[PATCH] take me home, hotplug_path[]
Move hotplug_path[] out of kmod.[ch] to kobject_uevent.[ch] where it belongs now. At some time in the future we should fix the remaining bad hotplug calls (no SEQNUM, no netlink uevent): ./drivers/input/input.c (no DEVPATH on some hotplug events!) ./drivers/pnp/pnpbios/core.c ./drivers/s390/crypto/z90main.c Signed-off-by: Kay Sievers <kay.sievers@vrfy.org> Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
Diffstat (limited to 'kernel/kmod.c')
-rw-r--r--kernel/kmod.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/kernel/kmod.c b/kernel/kmod.c
index 5e7c44a0cbaa..eed53d4f5230 100644
--- a/kernel/kmod.c
+++ b/kernel/kmod.c
@@ -115,29 +115,6 @@ int request_module(const char *fmt, ...)
EXPORT_SYMBOL(request_module);
#endif /* CONFIG_KMOD */
-#ifdef CONFIG_HOTPLUG
-/*
- hotplug path is set via /proc/sys
- invoked by hotplug-aware bus drivers,
- with call_usermodehelper
-
- argv [0] = hotplug_path;
- argv [1] = "usb", "scsi", "pci", "network", etc;
- ... plus optional type-specific parameters
- argv [n] = 0;
-
- envp [*] = HOME, PATH; optional type-specific parameters
-
- a hotplug bus should invoke this for device add/remove
- events. the command is expected to load drivers when
- necessary, and may perform additional system setup.
-*/
-char hotplug_path[KMOD_PATH_LEN] = "/sbin/hotplug";
-
-EXPORT_SYMBOL(hotplug_path);
-
-#endif /* CONFIG_HOTPLUG */
-
struct subprocess_info {
struct completion *complete;
char *path;