commit | 178db7d30f94707efca1a189753c105ef69942ed | [log] [tgz] |
---|---|---|
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | Mon Dec 12 01:15:06 2011 +0100 |
committer | Grant Likely <grant.likely@secretlab.ca> | Tue Dec 13 16:45:35 2011 -0700 |
tree | 088865bdd59288f626984e4191b636cabec8c439 | |
parent | dc47ce90c3a822cd7c9e9339fe4d5f61dcb26b50 [diff] |
spi: Fix device unregistration when unregistering the bus master Device are added as children of the bus master's parent device, but spi_unregister_master() looks for devices to unregister in the bus master's children. This results in the child devices not being unregistered. Fix this by registering devices as direct children of the bus master. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Grant Likely <grant.likely@secretlab.ca>