USB: fix interface unregistration logic
commit6fc7a3dba12db360e506b28c1660d1eb72403530
authorAlan Stern <stern@rowland.harvard.edu>
Thu, 14 Aug 2008 03:55:09 +0000 (14 03:55 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 20 Aug 2008 18:05:01 +0000 (20 11:05 -0700)
tree187112e5459b9e9802672d264c0201b2faa9e67e
parent184804574a9f6727ede1b1f6741f06122c485215
USB: fix interface unregistration logic

commit 1a21175a615ed346e8043f5e9d60a672266b84b4 upstream

This patch (as1122) fixes a bug: When an interface is unregistered,
its children (sysfs files and endpoint devices) are unregistered after
it instead of before.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Tested-by: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/core/message.c