Skip to content
Commit 178db7d3 authored by Laurent Pinchart's avatar Laurent Pinchart Committed by Grant Likely
Browse files

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: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: default avatarGrant Likely <grant.likely@secretlab.ca>
parent dc47ce90
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment