[SCSI] raid class: handle component-add errors

Signed-off-by: Jeff Garzik <jeff@garzik.org>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
This commit is contained in:
Jeff Garzik 2006-10-04 07:05:11 -04:00 committed by James Bottomley
parent 83aabc1be5
commit ed542bed12
2 changed files with 19 additions and 6 deletions

View file

@ -77,5 +77,6 @@ DEFINE_RAID_ATTRIBUTE(enum raid_state, state)
struct raid_template *raid_class_attach(struct raid_function_template *);
void raid_class_release(struct raid_template *);
void raid_component_add(struct raid_template *, struct device *,
struct device *);
int __must_check raid_component_add(struct raid_template *, struct device *,
struct device *);