~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to drivers/usb/host/fhci-hcd.c

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
401
401
                /* 1 td fro setup,1 for ack */
402
402
                size = 2;
403
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
405
                size += urb->transfer_buffer_length / 4096;
406
406
                /* ...add for any remaining bytes... */
407
407
                if ((urb->transfer_buffer_length % 4096) != 0)
561
561
        .hub_control = fhci_hub_control,
562
562
};
563
563
 
564
 
static int __devinit of_fhci_probe(struct platform_device *ofdev,
565
 
                                   const struct of_device_id *ofid)
 
564
static int __devinit of_fhci_probe(struct platform_device *ofdev)
566
565
{
567
566
        struct device *dev = &ofdev->dev;
568
567
        struct device_node *node = dev->of_node;
812
811
};
813
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
815
        .driver = {
817
816
                .name = "fsl,usb-fhci",
818
817
                .owner = THIS_MODULE,
824
823
 
825
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
828
module_init(fhci_module_init);
830
829
 
831
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
834
module_exit(fhci_module_exit);
836
835