Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- a/drivers/usb/sunxi_usb/hcd/hcd0/sw_hcd0.c 2014-09-16 15:56:39.636055207 -0600
- +++ b/drivers/usb/sunxi_usb/hcd/hcd0/sw_hcd0.c 2014-09-16 16:00:02.205949611 -0600
- @@ -2137,7 +2137,7 @@
- */
- int sw_usb_disable_hcd0(void)
- {
- -#ifdef CONFIG_USB_SW_SUNXI_USB0_HOST
- +#ifdef CONFIG_USB_SW_SUNXI_USB0_HOST_ONLY
- struct device *dev = NULL;
- struct platform_device *pdev = NULL;
- unsigned long flags = 0;
- @@ -2160,7 +2160,7 @@
- return 0;
- }
- -#ifndef CONFIG_USB_SW_SUNXI_USB0_HOST
- +#ifndef CONFIG_USB_SW_SUNXI_USB0_HOST_ONLY
- if(sw_hcd->config->port_info->port_type != USB_PORT_TYPE_HOST
- || sw_hcd->config->port_info->host_init_state){
- DMSG_PANIC("ERR: only host mode support sw_usb_disable_hcd, (%d, %d)\n",
- @@ -2221,7 +2221,7 @@
- */
- int sw_usb_enable_hcd0(void)
- {
- -#ifdef CONFIG_USB_SW_SUNXI_USB0_HOST
- +#ifdef CONFIG_USB_SW_SUNXI_USB0_HOST_ONLY
- struct device *dev = NULL;
- struct platform_device *pdev = NULL;
- unsigned long flags = 0;
- @@ -2244,7 +2244,7 @@
- return 0;
- }
- -#ifndef CONFIG_USB_SW_SUNXI_USB0_HOST
- +#ifndef CONFIG_USB_SW_SUNXI_USB0_HOST_ONLY
- if(sw_hcd->config->port_info->port_type != USB_PORT_TYPE_HOST
- || sw_hcd->config->port_info->host_init_state){
- DMSG_PANIC("ERR: only host mode support sw_usb_enable_hcd, (%d, %d)\n",
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement