diff options
Diffstat (limited to 'drivers/usb/host/ehci-hcd.c')
| -rw-r--r-- | drivers/usb/host/ehci-hcd.c | 12 | 
1 files changed, 6 insertions, 6 deletions
| diff --git a/drivers/usb/host/ehci-hcd.c b/drivers/usb/host/ehci-hcd.c index d1d8f08d986..4b28db70a56 100644 --- a/drivers/usb/host/ehci-hcd.c +++ b/drivers/usb/host/ehci-hcd.c @@ -30,7 +30,7 @@   */  #define HCHALT_TIMEOUT (8 * 1000) -#ifndef CONFIG_DM_USB +#if !CONFIG_IS_ENABLED(DM_USB)  static struct ehci_ctrl ehcic[CONFIG_USB_MAX_CONTROLLER_COUNT];  #endif @@ -111,7 +111,7 @@ static struct descriptor {  static struct ehci_ctrl *ehci_get_ctrl(struct usb_device *udev)  { -#ifdef CONFIG_DM_USB +#if CONFIG_IS_ENABLED(DM_USB)  	return dev_get_priv(usb_get_bus(udev->dev));  #else  	return udev->controller; @@ -973,7 +973,7 @@ static void ehci_setup_ops(struct ehci_ctrl *ctrl, const struct ehci_ops *ops)  	}  } -#ifndef CONFIG_DM_USB +#if !CONFIG_IS_ENABLED(DM_USB)  void ehci_set_controller_priv(int index, void *priv, const struct ehci_ops *ops)  {  	struct ehci_ctrl *ctrl = &ehcic[index]; @@ -1097,7 +1097,7 @@ static int ehci_common_init(struct ehci_ctrl *ctrl, uint tweaks)  	return 0;  } -#ifndef CONFIG_DM_USB +#if !CONFIG_IS_ENABLED(DM_USB)  int usb_lowlevel_stop(int index)  {  	ehci_shutdown(&ehcic[index]); @@ -1518,7 +1518,7 @@ static int _ehci_submit_int_msg(struct usb_device *dev, unsigned long pipe,  	return result;  } -#ifndef CONFIG_DM_USB +#if !CONFIG_IS_ENABLED(DM_USB)  int submit_bulk_msg(struct usb_device *dev, unsigned long pipe,  			    void *buffer, int length)  { @@ -1556,7 +1556,7 @@ int destroy_int_queue(struct usb_device *dev, struct int_queue *queue)  }  #endif -#ifdef CONFIG_DM_USB +#if CONFIG_IS_ENABLED(DM_USB)  static int ehci_submit_control_msg(struct udevice *dev, struct usb_device *udev,  				   unsigned long pipe, void *buffer, int length,  				   struct devrequest *setup) | 
