|
@@ -45,10 +45,6 @@ static struct clk *usb_clk;
|
|
|
|
|
|
/* forward definitions */
|
|
/* forward definitions */
|
|
|
|
|
|
-static int (*orig_ohci_hub_control)(struct usb_hcd *hcd, u16 typeReq,
|
|
|
|
- u16 wValue, u16 wIndex, char *buf, u16 wLength);
|
|
|
|
-static int (*orig_ohci_hub_status_data)(struct usb_hcd *hcd, char *buf);
|
|
|
|
-
|
|
|
|
static void s3c2410_hcd_oc(struct s3c2410_hcd_info *info, int port_oc);
|
|
static void s3c2410_hcd_oc(struct s3c2410_hcd_info *info, int port_oc);
|
|
|
|
|
|
/* conversion functions */
|
|
/* conversion functions */
|
|
@@ -110,7 +106,7 @@ ohci_s3c2410_hub_status_data(struct usb_hcd *hcd, char *buf)
|
|
int orig;
|
|
int orig;
|
|
int portno;
|
|
int portno;
|
|
|
|
|
|
- orig = orig_ohci_hub_status_data(hcd, buf);
|
|
|
|
|
|
+ orig = ohci_hub_status_data(hcd, buf);
|
|
|
|
|
|
if (info == NULL)
|
|
if (info == NULL)
|
|
return orig;
|
|
return orig;
|
|
@@ -181,7 +177,7 @@ static int ohci_s3c2410_hub_control(
|
|
* process the request straight away and exit */
|
|
* process the request straight away and exit */
|
|
|
|
|
|
if (info == NULL) {
|
|
if (info == NULL) {
|
|
- ret = orig_ohci_hub_control(hcd, typeReq, wValue,
|
|
|
|
|
|
+ ret = ohci_hub_control(hcd, typeReq, wValue,
|
|
wIndex, buf, wLength);
|
|
wIndex, buf, wLength);
|
|
goto out;
|
|
goto out;
|
|
}
|
|
}
|
|
@@ -231,7 +227,7 @@ static int ohci_s3c2410_hub_control(
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
|
|
|
|
- ret = orig_ohci_hub_control(hcd, typeReq, wValue, wIndex, buf, wLength);
|
|
|
|
|
|
+ ret = ohci_hub_control(hcd, typeReq, wValue, wIndex, buf, wLength);
|
|
if (ret)
|
|
if (ret)
|
|
goto out;
|
|
goto out;
|
|
|
|
|
|
@@ -489,9 +485,6 @@ static int __init ohci_s3c2410_init(void)
|
|
* override these functions by making it too easy.
|
|
* override these functions by making it too easy.
|
|
*/
|
|
*/
|
|
|
|
|
|
- orig_ohci_hub_control = ohci_s3c2410_hc_driver.hub_control;
|
|
|
|
- orig_ohci_hub_status_data = ohci_s3c2410_hc_driver.hub_status_data;
|
|
|
|
-
|
|
|
|
ohci_s3c2410_hc_driver.hub_status_data = ohci_s3c2410_hub_status_data;
|
|
ohci_s3c2410_hc_driver.hub_status_data = ohci_s3c2410_hub_status_data;
|
|
ohci_s3c2410_hc_driver.hub_control = ohci_s3c2410_hub_control;
|
|
ohci_s3c2410_hc_driver.hub_control = ohci_s3c2410_hub_control;
|
|
|
|
|