Advertisement
Guest User

usb_power_1.patch

a guest
Sep 16th, 2014
359
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.39 KB | None | 0 0
  1. --- a/drivers/usb/sunxi_usb/hcd/hcd0/sw_hcd0.c  2014-09-16 15:56:39.636055207 -0600
  2. +++ b/drivers/usb/sunxi_usb/hcd/hcd0/sw_hcd0.c  2014-09-16 16:00:02.205949611 -0600
  3. @@ -2137,7 +2137,7 @@
  4.  */
  5.  int sw_usb_disable_hcd0(void)
  6.  {
  7. -#ifdef  CONFIG_USB_SW_SUNXI_USB0_HOST
  8. +#ifdef  CONFIG_USB_SW_SUNXI_USB0_HOST_ONLY
  9.         struct device *dev = NULL;
  10.         struct platform_device *pdev = NULL;
  11.         unsigned long flags = 0;
  12. @@ -2160,7 +2160,7 @@
  13.                 return 0;
  14.         }
  15.  
  16. -#ifndef  CONFIG_USB_SW_SUNXI_USB0_HOST
  17. +#ifndef  CONFIG_USB_SW_SUNXI_USB0_HOST_ONLY
  18.         if(sw_hcd->config->port_info->port_type != USB_PORT_TYPE_HOST
  19.           || sw_hcd->config->port_info->host_init_state){
  20.          DMSG_PANIC("ERR: only host mode support sw_usb_disable_hcd, (%d, %d)\n",
  21. @@ -2221,7 +2221,7 @@
  22.  */
  23.  int sw_usb_enable_hcd0(void)
  24.  {
  25. -#ifdef  CONFIG_USB_SW_SUNXI_USB0_HOST
  26. +#ifdef  CONFIG_USB_SW_SUNXI_USB0_HOST_ONLY
  27.         struct device *dev = NULL;
  28.         struct platform_device *pdev = NULL;
  29.         unsigned long   flags = 0;
  30. @@ -2244,7 +2244,7 @@
  31.                 return 0;
  32.         }
  33.  
  34. -#ifndef  CONFIG_USB_SW_SUNXI_USB0_HOST
  35. +#ifndef  CONFIG_USB_SW_SUNXI_USB0_HOST_ONLY
  36.         if(sw_hcd->config->port_info->port_type != USB_PORT_TYPE_HOST
  37.           || sw_hcd->config->port_info->host_init_state){
  38.          DMSG_PANIC("ERR: only host mode support sw_usb_enable_hcd, (%d, %d)\n",
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement