[PATCH v5 3/7] of/platform: expose of_platform_device_destroy()

2016-09-02 Thread Tom Gundersen
On Fri, Sep 2, 2016 at 10:22 AM, David Herrmann wrote: > We already expose of_platform_device_create(), but give the caller no > chance to revert its effect. Make sure we also provide the counterpart > of_platform_device_destroy(). > > This requires a small refactoring, since so far the internal

[PATCH v5 3/7] of/platform: expose of_platform_device_destroy()

2016-09-02 Thread David Herrmann
We already expose of_platform_device_create(), but give the caller no chance to revert its effect. Make sure we also provide the counterpart of_platform_device_destroy(). This requires a small refactoring, since so far the internal destructor is used as iterator to for_each_device(), but we don't