Re: [PATCH v2] spi: Fix device unregistration when unregistering the bus master

2011-12-16 Thread Laurent Pinchart
Hi Grant, On Friday 16 December 2011 17:59:20 Grant Likely wrote: > On Fri, Dec 16, 2011 at 9:52 AM, Laurent Pinchart wrote: > > On Wednesday 14 December 2011 00:45:20 Grant Likely wrote: > >> On Mon, Dec 12, 2011 at 01:15:06AM +0100, Laurent Pinchart wrote: > >> > Device are added as children of

Re: [PATCH v2] spi: Fix device unregistration when unregistering the bus master

2011-12-16 Thread Grant Likely
On Fri, Dec 16, 2011 at 9:52 AM, Laurent Pinchart wrote: > Hi Grant, > > On Wednesday 14 December 2011 00:45:20 Grant Likely wrote: >> On Mon, Dec 12, 2011 at 01:15:06AM +0100, Laurent Pinchart wrote: >> > Device are added as children of the bus master's parent device, but >> > spi_unregister_mast

Re: [PATCH v2] spi: Fix device unregistration when unregistering the bus master

2011-12-16 Thread Laurent Pinchart
Hi Grant, On Wednesday 14 December 2011 00:45:20 Grant Likely wrote: > On Mon, Dec 12, 2011 at 01:15:06AM +0100, Laurent Pinchart wrote: > > 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 child

Re: [PATCH v2] spi: Fix device unregistration when unregistering the bus master

2011-12-14 Thread Grant Likely
On Mon, Dec 12, 2011 at 01:15:06AM +0100, Laurent Pinchart wrote: > 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

Re: [PATCH v2] spi: Fix device unregistration when unregistering the bus master

2011-12-13 Thread Linus Walleij
On Mon, Dec 12, 2011 at 1:15 AM, Laurent Pinchart wrote: > 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 regi

[PATCH v2] spi: Fix device unregistration when unregistering the bus master

2011-12-11 Thread Laurent Pinchart
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: