Skip to content
Commit 80443183 authored by Simon Glass's avatar Simon Glass
Browse files

dm: core: Fix handling of uclass pre_unbind method



This method is currently called after the platform data has been freed.
But the pre_unbind() method may wish to access this, e.g. to free some
data structures stored there.

Split the unbinding of devices into two pieces, as is done with removal.
This corrects the problem.

Also tidy a code-style issue in device_remove() while we are here.

Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
parent fb933d07
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment