component: move check for unbound master into try_to_bring_up_masters()
authorRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 23 Apr 2014 09:46:11 +0000 (10:46 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 7 Dec 2015 00:02:04 +0000 (00:02 +0000)
commit29f1c7fd61a31e0335ce41d4b2788959ad7c468d
treedc329e21451e220b2e29357348d261d9d7a188fc
parentfae9e2e07af07baabb8c26a31b3f7d8fdf89809e
component: move check for unbound master into try_to_bring_up_masters()

Clean up the code a little; we don't need to check that the master is
unbound for every invocation of try_to_bring_up_master(), so let's move
it to where it's really needed - try_to_bring_up_masters(), where we may
encounter already bound masters.

Reviewed-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/base/component.c