Patchwork [U-Boot,V6,04/10] usb: gadget: mv_udc: don't check CONFIG_USB_MAX_CONTROLLER_COUNT

login
register
mail settings
Submitter Troy Kisky
Date Oct. 10, 2013, 10:27 p.m.
Message ID <1381444084-24296-5-git-send-email-troy.kisky@boundarydevices.com>
Download mbox | patch
Permalink /patch/282478/
State Accepted
Delegated to: Marek Vasut
Headers show

Comments

Troy Kisky - Oct. 10, 2013, 10:27 p.m.
i.mx6 has 1 otg controller, and 3 host ports. So,
CONFIG_USB_MAX_CONTROLLER_COUNT can be greater than 1
even though only 1 device mode controller is supported.

Signed-off-by: Troy Kisky <troy.kisky@boundarydevices.com>

---
v4: new patch
v5: no change
v6: no change
---
 drivers/usb/gadget/mv_udc.c | 4 ----
 1 file changed, 4 deletions(-)

Patch

diff --git a/drivers/usb/gadget/mv_udc.c b/drivers/usb/gadget/mv_udc.c
index 3ee53a5..13f2d6d 100644
--- a/drivers/usb/gadget/mv_udc.c
+++ b/drivers/usb/gadget/mv_udc.c
@@ -17,10 +17,6 @@ 
 #include <linux/types.h>
 #include <usb/mv_udc.h>
 
-#if CONFIG_USB_MAX_CONTROLLER_COUNT > 1
-#error This driver only supports one single controller.
-#endif
-
 /*
  * Check if the system has too long cachelines. If the cachelines are
  * longer then 128b, the driver will not be able flush/invalidate data