]> git.baikalelectronics.ru Git - kernel.git/commit
component: ignore multiple additions of the same component
authorRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 18 Apr 2014 19:16:22 +0000 (20:16 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 3 Jul 2014 10:32:40 +0000 (11:32 +0100)
commite958f175edc2abd8e83e4845860c1263ae53648b
treeabc91266771d81fe0401da0febbaeba59dd425f8
parent3b35bca74d364552312ed6cf15988ccd1880e8c4
component: ignore multiple additions of the same component

Permit masters to call component_master_add_child() and match the same
child multiple times.  This may happen if there's multiple connections
to a single component device from other devices.  In such scenarios,
we should not return a failure, but instead ignore the attempt.

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