diff options
author | Alan Stern <stern@rowland.harvard.edu> | 2005-04-25 11:28:04 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2005-06-27 14:43:49 -0700 |
commit | 247f3105636caa9d1d8a4c3dfb755de42633bc80 (patch) | |
tree | f5fca7b566ee3304d661485a11dc4877652e7904 /drivers/usb/host/sl811-hcd.c | |
parent | 8ec8d20b21f00a36343ca0ebd6c6be9421724a1e (diff) | |
download | kernel_goldelico_gta04-247f3105636caa9d1d8a4c3dfb755de42633bc80.zip kernel_goldelico_gta04-247f3105636caa9d1d8a4c3dfb755de42633bc80.tar.gz kernel_goldelico_gta04-247f3105636caa9d1d8a4c3dfb755de42633bc80.tar.bz2 |
[PATCH] USB HCDs: no longer need to register root hub
This patch changes the host controller drivers; they no longer need to
register their root hubs because usbcore will take care of it for them.
Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/host/sl811-hcd.c')
-rw-r--r-- | drivers/usb/host/sl811-hcd.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/drivers/usb/host/sl811-hcd.c b/drivers/usb/host/sl811-hcd.c index 1f2d00f..6c3f910 100644 --- a/drivers/usb/host/sl811-hcd.c +++ b/drivers/usb/host/sl811-hcd.c @@ -1563,15 +1563,8 @@ static int sl811h_start(struct usb_hcd *hcd) { struct sl811 *sl811 = hcd_to_sl811(hcd); - struct usb_device *udev; /* chip has been reset, VBUS power is off */ - - udev = usb_alloc_dev(NULL, &hcd->self, 0); - if (!udev) - return -ENOMEM; - - udev->speed = USB_SPEED_FULL; hcd->state = HC_STATE_RUNNING; if (sl811->board) { @@ -1579,12 +1572,6 @@ sl811h_start(struct usb_hcd *hcd) hcd->power_budget = sl811->board->power * 2; } - if (usb_hcd_register_root_hub(udev, hcd) != 0) { - usb_put_dev(udev); - sl811h_stop(hcd); - return -ENODEV; - } - /* enable power and interupts */ port_power(sl811, 1); |