usb: create USBPortOps, move attach there.

Create USBPortOps struct, move the attach function to that struct.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
Gerd Hoffmann 2010-12-01 11:08:44 +01:00
parent ed5a83ddd8
commit 0d86d2bebb
7 changed files with 30 additions and 10 deletions

View file

@ -28,7 +28,7 @@
void usb_attach(USBPort *port, USBDevice *dev)
{
port->attach(port, dev);
port->ops->attach(port, dev);
}
/**********************/