[SCSI] ses: add support for enclosure component hot removal
authorJames Bottomley <James.Bottomley@HansenPartnership.com>
Sat, 1 Aug 2009 00:41:22 +0000 (00:41 +0000)
committerJames Bottomley <James.Bottomley@suse.de>
Sat, 22 Aug 2009 22:52:13 +0000 (17:52 -0500)
commit43d8eb9cfd0aea93be32181c64e18191b69c211c
tree76725fe2ea080cb26c7503dbab8226181de1aa04
parent163f52b6cf3a639df6a72c7937e0eb88b20f1ef3
[SCSI] ses: add support for enclosure component hot removal

Right at the moment, hot removal of a device within an enclosure does
nothing (because the intf_remove only copes with enclosure removal not
with component removal). Fix this by adding a function to remove the
component.  Also needed to fix the prototype of
enclosure_remove_device, since we know the device we've removed but
not the internal component number

Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/misc/enclosure.c
drivers/scsi/ses.c
include/linux/enclosure.h