The register and unregister paths for platform_devices use different tests to chose which resources to process. Register uses the value of both parent & type, but unregister relies solely on type, which can result in some resources not being unregistered, and an oops when an unregistered resource is attempted to be removed. The oops issue is particularly a problem for devicetree users because resources are not registered in that path. Add a test that exposes the problem for devicetree users, and then fix the problem. -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html