diff options
author | James Bottomley <James.Bottomley@steeleye.com> | 2005-08-15 17:13:19 -0400 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.(none)> | 2005-08-28 12:14:06 -0400 |
commit | ebd8bb7647e908e8654e565fa289b0300f9f8fa7 (patch) | |
tree | a2afebb1cdcb6309e2d1bc5e8c39e7895ade9236 /drivers/base/attribute_container.c | |
parent | 975f24bdc7d3833875309509abbc7da2b2a28234 (diff) |
[SCSI] fix transport class corner case after rework
If your transport class sets the ATTRIBUTE_CONTAINER_NO_CLASSDEVS flag,
then its configure method never gets called. This patch fixes that so
that the configure method is called with a NULL classdev.
Also remove a spurious inverted comma in the transport_class comments.
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/base/attribute_container.c')
-rw-r--r-- | drivers/base/attribute_container.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/base/attribute_container.c b/drivers/base/attribute_container.c index 62c093db11e6..ebcae5c34133 100644 --- a/drivers/base/attribute_container.c +++ b/drivers/base/attribute_container.c | |||
@@ -237,6 +237,11 @@ attribute_container_device_trigger(struct device *dev, | |||
237 | if (!cont->match(cont, dev)) | 237 | if (!cont->match(cont, dev)) |
238 | continue; | 238 | continue; |
239 | 239 | ||
240 | if (attribute_container_no_classdevs(cont)) { | ||
241 | fn(cont, dev, NULL); | ||
242 | continue; | ||
243 | } | ||
244 | |||
240 | spin_lock(&cont->containers_lock); | 245 | spin_lock(&cont->containers_lock); |
241 | list_for_each_entry_safe(ic, tmp, &cont->containers, node) { | 246 | list_for_each_entry_safe(ic, tmp, &cont->containers, node) { |
242 | if (dev == ic->classdev.dev) | 247 | if (dev == ic->classdev.dev) |