diff options
Diffstat (limited to 'drivers/usb/host/fhci-hcd.c')
-rw-r--r-- | drivers/usb/host/fhci-hcd.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/usb/host/fhci-hcd.c b/drivers/usb/host/fhci-hcd.c index 12fd184226f2..b84ff7e51896 100644 --- a/drivers/usb/host/fhci-hcd.c +++ b/drivers/usb/host/fhci-hcd.c | |||
@@ -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 | ||