usb-ehci: cleanup port reset handling
commitfbf9db645765a22b796e128967bebb64c073938a
authorHans de Goede <hdegoede@redhat.com>
Tue, 21 Jun 2011 10:23:40 +0000 (21 12:23 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 5 Jul 2011 13:09:02 +0000 (5 15:09 +0200)
treebb62231513bb61c2c887c4223e4783e5007bf02e
parentc44fd61c0f38aa7927fd41bd7e59cb3e60fd4d75
usb-ehci: cleanup port reset handling

Doing a usb_attach when dev is NULL will just result in the
port detach op getting called even though nothing was connected in
the first place.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/usb-ehci.c