component: fix missed cleanup in case of devres failure
authorRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 23 Apr 2014 09:52:17 +0000 (10:52 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 3 Jul 2014 10:32:37 +0000 (11:32 +0100)
commitc334940ea26cb58f5514dcbb225a3f397b2684ad
treeef00fb1054c92630e1f50ec5f0af46d7d9ade671
parent4c834452aad01531db949414f94f817a86348d59
component: fix missed cleanup in case of devres failure

In try_to_bring_up_master(), we tear down the master's component list
for each error case, except for devres group failure.  Fix this
oversight by making the code less prone to such mistakes.

Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/base/component.c