aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/ehci-hcd.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/host/ehci-hcd.c')
-rw-r--r--drivers/usb/host/ehci-hcd.c22
1 files changed, 7 insertions, 15 deletions
diff --git a/drivers/usb/host/ehci-hcd.c b/drivers/usb/host/ehci-hcd.c
index a205a53c61ff..c4e15ed1405a 100644
--- a/drivers/usb/host/ehci-hcd.c
+++ b/drivers/usb/host/ehci-hcd.c
@@ -41,10 +41,6 @@
41#include <asm/irq.h> 41#include <asm/irq.h>
42#include <asm/system.h> 42#include <asm/system.h>
43#include <asm/unaligned.h> 43#include <asm/unaligned.h>
44#ifdef CONFIG_PPC_PS3
45#include <asm/firmware.h>
46#endif
47
48 44
49/*-------------------------------------------------------------------------*/ 45/*-------------------------------------------------------------------------*/
50 46
@@ -1012,7 +1008,7 @@ MODULE_LICENSE ("GPL");
1012 1008
1013#ifdef CONFIG_PPC_PS3 1009#ifdef CONFIG_PPC_PS3
1014#include "ehci-ps3.c" 1010#include "ehci-ps3.c"
1015#define PS3_SYSTEM_BUS_DRIVER ps3_ehci_sb_driver 1011#define PS3_SYSTEM_BUS_DRIVER ps3_ehci_driver
1016#endif 1012#endif
1017 1013
1018#ifdef CONFIG_440EPX 1014#ifdef CONFIG_440EPX
@@ -1051,18 +1047,15 @@ static int __init ehci_hcd_init(void)
1051#endif 1047#endif
1052 1048
1053#ifdef PS3_SYSTEM_BUS_DRIVER 1049#ifdef PS3_SYSTEM_BUS_DRIVER
1054 if (firmware_has_feature(FW_FEATURE_PS3_LV1)) { 1050 retval = ps3_ehci_driver_register(&PS3_SYSTEM_BUS_DRIVER);
1055 retval = ps3_system_bus_driver_register( 1051 if (retval < 0) {
1056 &PS3_SYSTEM_BUS_DRIVER);
1057 if (retval < 0) {
1058#ifdef PLATFORM_DRIVER 1052#ifdef PLATFORM_DRIVER
1059 platform_driver_unregister(&PLATFORM_DRIVER); 1053 platform_driver_unregister(&PLATFORM_DRIVER);
1060#endif 1054#endif
1061#ifdef PCI_DRIVER 1055#ifdef PCI_DRIVER
1062 pci_unregister_driver(&PCI_DRIVER); 1056 pci_unregister_driver(&PCI_DRIVER);
1063#endif 1057#endif
1064 return retval; 1058 return retval;
1065 }
1066 } 1059 }
1067#endif 1060#endif
1068 1061
@@ -1079,8 +1072,7 @@ static void __exit ehci_hcd_cleanup(void)
1079 pci_unregister_driver(&PCI_DRIVER); 1072 pci_unregister_driver(&PCI_DRIVER);
1080#endif 1073#endif
1081#ifdef PS3_SYSTEM_BUS_DRIVER 1074#ifdef PS3_SYSTEM_BUS_DRIVER
1082 if (firmware_has_feature(FW_FEATURE_PS3_LV1)) 1075 ps3_ehci_driver_unregister(&PS3_SYSTEM_BUS_DRIVER);
1083 ps3_system_bus_driver_unregister(&PS3_SYSTEM_BUS_DRIVER);
1084#endif 1076#endif
1085} 1077}
1086module_exit(ehci_hcd_cleanup); 1078module_exit(ehci_hcd_cleanup);