component: track components via array rather than list
authorRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 18 Apr 2014 22:05:53 +0000 (23:05 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 7 Dec 2015 00:02:05 +0000 (00:02 +0000)
commitffc30b74fd6d01588bd3fdebc3b1acc0857e6fc8
treef013e9daec3d283bbf34d34f1f9312e5531a7d71
parent29f1c7fd61a31e0335ce41d4b2788959ad7c468d
component: track components via array rather than list

Since we now have an array which defines each component, maintain the
components to be bound in the array rather than a separate list.  We
also need duplicate tracking so we can eliminate multiple bind calls
for the same component: we preserve the list-based component order in
that the first match which adds the component determines its position.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/base/component.c