[PATCH] Driver core: only all userspace bind/unbind if CONFIG_HOTPLUG is enabled
authorGreg Kroah-Hartman <gregkh@suse.de>
Tue, 13 Dec 2005 23:17:34 +0000 (15:17 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 5 Jan 2006 00:18:09 +0000 (16:18 -0800)
commit874c6241b2e49e52680d32a50d4909c7768d5cb9
tree815b08ab6793cd45346c3d5f6a3875f36c0bfc91
parenta96b204208443ab7e23c681f7ddabe807a741d0c
[PATCH] Driver core: only all userspace bind/unbind if CONFIG_HOTPLUG is enabled

Thanks to drivers making their id tables __devinit, we can't allow
userspace to bind or unbind drivers from devices manually through sysfs.
So we only allow this if CONFIG_HOTPLUG is enabled.

Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/base/bus.c