]> git.baikalelectronics.ru Git - kernel.git/commit
drivers/base: fix devres handling for master device
authorRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 7 Feb 2014 20:09:27 +0000 (20:09 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 8 Feb 2014 00:45:14 +0000 (16:45 -0800)
commite54926d7ebe877fe427ef94bc1500514c676651d
treeb5036e6e0cff4f4264f02ca6991b342ed71cc4fe
parent005bfe748cc40b199ba0cae147ac13ae55099a7d
drivers/base: fix devres handling for master device

We weren't handling the devres issues for the master device failing a
bind, or being unbound properly.  Add a devres group to contain these,
and release the resources at the appropriate points.

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