platform_device_unregister_children
platform_device_unregister_children(to_platform_device(dev));
platform_device_unregister_children(pdev);