K 10 svn:author V 3 ian K 8 svn:date V 27 2018-07-05T15:34:16.611598Z K 7 svn:log V 354 Remove a test and early-out which just can't possibly be right. It causes detach() to do nothing if attach() succeeded, which is the opposite of what's needed. Also, move device_delete_children() from the end to the beginning of detach(), so that children won't be trying to make use of the hardware we're in the process of shutting down. PR: 229510 END