aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/ehci-tegra.c
diff options
context:
space:
mode:
authorVenu Byravarasu <vbyravarasu@nvidia.com>2012-04-06 00:10:18 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-04-18 16:52:35 -0400
commitc6fa0b4c4e09a13e034a1c6c542dc2b3539ba1b8 (patch)
treed7a5f3310fbc51847d4e736bf7c567c48ce94096 /drivers/usb/host/ehci-tegra.c
parent8788fa0344419d1d9bd1be3f61f1f0c4d9c1d568 (diff)
usb: host: tegra: re-arranging ehci functions
Re-arranged EHCI generic and tegra specific functions into two separate groups for more readability. Signed-off-by: Venu Byravarasu <vbyravarasu@nvidia.com> Acked-by: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/host/ehci-tegra.c')
-rw-r--r--drivers/usb/host/ehci-tegra.c19
1 files changed, 10 insertions, 9 deletions
diff --git a/drivers/usb/host/ehci-tegra.c b/drivers/usb/host/ehci-tegra.c
index 3197f8a55f2..4c8bef615ce 100644
--- a/drivers/usb/host/ehci-tegra.c
+++ b/drivers/usb/host/ehci-tegra.c
@@ -545,31 +545,32 @@ static const struct hc_driver tegra_ehci_hc_driver = {
545 .description = hcd_name, 545 .description = hcd_name,
546 .product_desc = "Tegra EHCI Host Controller", 546 .product_desc = "Tegra EHCI Host Controller",
547 .hcd_priv_size = sizeof(struct ehci_hcd), 547 .hcd_priv_size = sizeof(struct ehci_hcd),
548
549 .flags = HCD_USB2 | HCD_MEMORY, 548 .flags = HCD_USB2 | HCD_MEMORY,
550 549
551 .reset = tegra_ehci_setup, 550 /* standard ehci functions */
552 .irq = ehci_irq, 551 .irq = ehci_irq,
553
554 .start = ehci_run, 552 .start = ehci_run,
555 .stop = ehci_stop, 553 .stop = ehci_stop,
556 .shutdown = tegra_ehci_shutdown,
557 .urb_enqueue = ehci_urb_enqueue, 554 .urb_enqueue = ehci_urb_enqueue,
558 .urb_dequeue = ehci_urb_dequeue, 555 .urb_dequeue = ehci_urb_dequeue,
559 .map_urb_for_dma = tegra_ehci_map_urb_for_dma,
560 .unmap_urb_for_dma = tegra_ehci_unmap_urb_for_dma,
561 .endpoint_disable = ehci_endpoint_disable, 556 .endpoint_disable = ehci_endpoint_disable,
562 .endpoint_reset = ehci_endpoint_reset, 557 .endpoint_reset = ehci_endpoint_reset,
563 .get_frame_number = ehci_get_frame, 558 .get_frame_number = ehci_get_frame,
564 .hub_status_data = ehci_hub_status_data, 559 .hub_status_data = ehci_hub_status_data,
565 .hub_control = tegra_ehci_hub_control,
566 .clear_tt_buffer_complete = ehci_clear_tt_buffer_complete, 560 .clear_tt_buffer_complete = ehci_clear_tt_buffer_complete,
561 .relinquish_port = ehci_relinquish_port,
562 .port_handed_over = ehci_port_handed_over,
563
564 /* modified ehci functions for tegra */
565 .reset = tegra_ehci_setup,
566 .shutdown = tegra_ehci_shutdown,
567 .map_urb_for_dma = tegra_ehci_map_urb_for_dma,
568 .unmap_urb_for_dma = tegra_ehci_unmap_urb_for_dma,
569 .hub_control = tegra_ehci_hub_control,
567#ifdef CONFIG_PM 570#ifdef CONFIG_PM
568 .bus_suspend = tegra_ehci_bus_suspend, 571 .bus_suspend = tegra_ehci_bus_suspend,
569 .bus_resume = tegra_ehci_bus_resume, 572 .bus_resume = tegra_ehci_bus_resume,
570#endif 573#endif
571 .relinquish_port = ehci_relinquish_port,
572 .port_handed_over = ehci_port_handed_over,
573}; 574};
574 575
575static int setup_vbus_gpio(struct platform_device *pdev) 576static int setup_vbus_gpio(struct platform_device *pdev)