[PATCH] Driver Core: remove driver model detach_state
authorDavid Brownell <david-b@pacbell.net>
Thu, 12 May 2005 19:06:27 +0000 (12:06 -0700)
committerGreg KH <gregkh@suse.de>
Tue, 17 May 2005 21:54:55 +0000 (14:54 -0700)
commit0b405a0f7e4d4d18fd1fe46ddf5ff465443036ab
tree49d74df6eddfdd095c650e0af34cde7f4548a2d5
parent82428b62aa6294ea640c7e920a9224ecaf46db65
[PATCH] Driver Core: remove driver model detach_state

The driver model has a "detach_state" mechanism that:

 - Has never been used by any in-kernel drive;
 - Is superfluous, since driver remove() methods can do the same thing;
 - Became buggy when the suspend() parameter changed semantics and type;
 - Could self-deadlock when called from certain suspend contexts;
 - Is effectively wasted documentation, object code, and headspace.

This removes that "detach_state" mechanism; net code shrink, as well
as a per-device saving in the driver model and sysfs.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Documentation/filesystems/sysfs-pci.txt
Documentation/power/devices.txt
Documentation/powerpc/hvcs.txt
drivers/base/Makefile
drivers/base/bus.c
drivers/base/core.c
drivers/base/interface.c [deleted file]
drivers/base/power/power.h
drivers/base/power/shutdown.c
include/linux/device.h