aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/base
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/base')
-rw-r--r--drivers/base/attribute_container.c5
-rw-r--r--drivers/base/transport_class.c2
2 files changed, 6 insertions, 1 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)
diff --git a/drivers/base/transport_class.c b/drivers/base/transport_class.c
index 4fb4c5de8470..f25e7c6b2d27 100644
--- a/drivers/base/transport_class.c
+++ b/drivers/base/transport_class.c
@@ -7,7 +7,7 @@
7 * This file is licensed under GPLv2 7 * This file is licensed under GPLv2
8 * 8 *
9 * The basic idea here is to allow any "device controller" (which 9 * The basic idea here is to allow any "device controller" (which
10 * would most often be a Host Bus Adapter" to use the services of one 10 * would most often be a Host Bus Adapter to use the services of one
11 * or more tranport classes for performing transport specific 11 * or more tranport classes for performing transport specific
12 * services. Transport specific services are things that the generic 12 * services. Transport specific services are things that the generic
13 * command layer doesn't want to know about (speed settings, line 13 * command layer doesn't want to know about (speed settings, line