]> git.baikalelectronics.ru Git - kernel.git/commit
Driver core: allow certain drivers prohibit bind/unbind via sysfs
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 13 Oct 2009 03:17:41 +0000 (20:17 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 30 Oct 2009 21:59:51 +0000 (14:59 -0700)
commitbb35ab047b87f51e2194162f37044f56003758a0
tree03fdca9848003b3a6fda57113b3e750ec1e22a55
parent058410b6c1894650ea4bb583cc90666623c36541
Driver core: allow certain drivers prohibit bind/unbind via sysfs

Platform drivers registered via platform_driver_probe() can be bound
to devices only once, upon registration, because discard their probe()
routines to save memory. Unbinding the driver through sysfs 'unbind'
leaves the device stranded and confuses users so let's not create
bind and unbind attributes for such drivers.

Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Cc: Éric Piel <eric.piel@tremplin-utc.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/base/bus.c
drivers/base/platform.c
include/linux/device.h