On Tue, Dec 6, 2011 at 5:22 PM, Laurent Pinchart
wrote:
> Hi Linus,
>> The latter should be:
>>
>> struct device *dev = master->dev;
>>
>> Just my €0.01...
>
> I agree with you, that was my initial approach as well. However, it changes
> the parent-child relationships and might b
Hi Linus,
On Friday 02 December 2011 13:14:31 Linus Walleij wrote:
> On Mon, Nov 28, 2011 at 2:23 PM, Laurent Pinchart wrote:
> > I'm not too familiar with the way the SPI subsystem plugs its devices in
> > the Linux device model, so I'm not sure what the right fix is. An
> > alternative would be
On Mon, Nov 28, 2011 at 2:23 PM, Laurent Pinchart
wrote:
> I'm not too familiar with the way the SPI subsystem plugs its devices in the
> Linux device model, so I'm not sure what the right fix is. An alternative
> would
> be to register the SPI devices as children of the SPI master, not as sibli
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 iterating over the bus master's parent device when
unregistering the maste