Currently showing content of /sys/kernel/debug/device_component/* works partially, in case one of the components is not available this and all remaining components have status not-registered, but the problem is only with the first one. Allowing to finish lookup for other components in case one is missing solves the issue.
Signed-off-by: Andrzej Hajda <[email protected]> --- drivers/base/component.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/base/component.c b/drivers/base/component.c index e8d676fad0c9..e9572b37d5cf 100644 --- a/drivers/base/component.c +++ b/drivers/base/component.c @@ -179,7 +179,7 @@ static int find_components(struct master *master) c = find_component(master, mc->compare, mc->data); if (!c) { ret = -ENXIO; - break; + continue; } dev_dbg(master->dev, "found component %s, duplicate %u\n", dev_name(c->dev), !!c->master); -- 2.17.1

