diff options
author | Glenn Elliott <gelliott@cs.unc.edu> | 2012-03-04 19:47:13 -0500 |
---|---|---|
committer | Glenn Elliott <gelliott@cs.unc.edu> | 2012-03-04 19:47:13 -0500 |
commit | c71c03bda1e86c9d5198c5d83f712e695c4f2a1e (patch) | |
tree | ecb166cb3e2b7e2adb3b5e292245fefd23381ac8 /drivers/usb/host/fhci-hcd.c | |
parent | ea53c912f8a86a8567697115b6a0d8152beee5c8 (diff) | |
parent | 6a00f206debf8a5c8899055726ad127dbeeed098 (diff) |
Merge branch 'mpi-master' into wip-k-fmlpwip-k-fmlp
Conflicts:
litmus/sched_cedf.c
Diffstat (limited to 'drivers/usb/host/fhci-hcd.c')
-rw-r--r-- | drivers/usb/host/fhci-hcd.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/drivers/usb/host/fhci-hcd.c b/drivers/usb/host/fhci-hcd.c index 20092a27a1e8..19223c7449e1 100644 --- a/drivers/usb/host/fhci-hcd.c +++ b/drivers/usb/host/fhci-hcd.c | |||
@@ -98,13 +98,13 @@ void fhci_usb_enable_interrupt(struct fhci_usb *usb) | |||
98 | usb->intr_nesting_cnt--; | 98 | usb->intr_nesting_cnt--; |
99 | } | 99 | } |
100 | 100 | ||
101 | /* diable the usb interrupt */ | 101 | /* disable the usb interrupt */ |
102 | void fhci_usb_disable_interrupt(struct fhci_usb *usb) | 102 | void fhci_usb_disable_interrupt(struct fhci_usb *usb) |
103 | { | 103 | { |
104 | struct fhci_hcd *fhci = usb->fhci; | 104 | struct fhci_hcd *fhci = usb->fhci; |
105 | 105 | ||
106 | if (usb->intr_nesting_cnt == 0) { | 106 | if (usb->intr_nesting_cnt == 0) { |
107 | /* diable the timer interrupt */ | 107 | /* disable the timer interrupt */ |
108 | disable_irq_nosync(fhci->timer->irq); | 108 | disable_irq_nosync(fhci->timer->irq); |
109 | 109 | ||
110 | /* disable the usb interrupt */ | 110 | /* disable the usb interrupt */ |
@@ -401,7 +401,7 @@ static int fhci_urb_enqueue(struct usb_hcd *hcd, struct urb *urb, | |||
401 | /* 1 td fro setup,1 for ack */ | 401 | /* 1 td fro setup,1 for ack */ |
402 | size = 2; | 402 | size = 2; |
403 | case PIPE_BULK: | 403 | case PIPE_BULK: |
404 | /* one td for every 4096 bytes(can be upto 8k) */ | 404 | /* one td for every 4096 bytes(can be up to 8k) */ |
405 | size += urb->transfer_buffer_length / 4096; | 405 | size += urb->transfer_buffer_length / 4096; |
406 | /* ...add for any remaining bytes... */ | 406 | /* ...add for any remaining bytes... */ |
407 | if ((urb->transfer_buffer_length % 4096) != 0) | 407 | if ((urb->transfer_buffer_length % 4096) != 0) |
@@ -561,8 +561,7 @@ static const struct hc_driver fhci_driver = { | |||
561 | .hub_control = fhci_hub_control, | 561 | .hub_control = fhci_hub_control, |
562 | }; | 562 | }; |
563 | 563 | ||
564 | static int __devinit of_fhci_probe(struct platform_device *ofdev, | 564 | static int __devinit of_fhci_probe(struct platform_device *ofdev) |
565 | const struct of_device_id *ofid) | ||
566 | { | 565 | { |
567 | struct device *dev = &ofdev->dev; | 566 | struct device *dev = &ofdev->dev; |
568 | struct device_node *node = dev->of_node; | 567 | struct device_node *node = dev->of_node; |
@@ -812,7 +811,7 @@ static const struct of_device_id of_fhci_match[] = { | |||
812 | }; | 811 | }; |
813 | MODULE_DEVICE_TABLE(of, of_fhci_match); | 812 | MODULE_DEVICE_TABLE(of, of_fhci_match); |
814 | 813 | ||
815 | static struct of_platform_driver of_fhci_driver = { | 814 | static struct platform_driver of_fhci_driver = { |
816 | .driver = { | 815 | .driver = { |
817 | .name = "fsl,usb-fhci", | 816 | .name = "fsl,usb-fhci", |
818 | .owner = THIS_MODULE, | 817 | .owner = THIS_MODULE, |
@@ -824,13 +823,13 @@ static struct of_platform_driver of_fhci_driver = { | |||
824 | 823 | ||
825 | static int __init fhci_module_init(void) | 824 | static int __init fhci_module_init(void) |
826 | { | 825 | { |
827 | return of_register_platform_driver(&of_fhci_driver); | 826 | return platform_driver_register(&of_fhci_driver); |
828 | } | 827 | } |
829 | module_init(fhci_module_init); | 828 | module_init(fhci_module_init); |
830 | 829 | ||
831 | static void __exit fhci_module_exit(void) | 830 | static void __exit fhci_module_exit(void) |
832 | { | 831 | { |
833 | of_unregister_platform_driver(&of_fhci_driver); | 832 | platform_driver_unregister(&of_fhci_driver); |
834 | } | 833 | } |
835 | module_exit(fhci_module_exit); | 834 | module_exit(fhci_module_exit); |
836 | 835 | ||