Re: [PATCH v2 11/41] dm: core: Fix handling of uclass pre_unbind method

2021-11-24 Thread Simon Glass
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

[PATCH v2 11/41] dm: core: Fix handling of uclass pre_unbind method

2021-10-23 Thread Simon Glass
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