On Thu, Jun 14, 2018 at 01:11:36PM +0200, Niklas Cassel wrote: > of_platform_device_destroy is only defined when building > with CONFIG_OF=y. Add a depends on OF. Is it sensible that of_platform_device_destroy() is only defined when building with CONFIG_OF=y?