aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/usb/chipidea/core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/chipidea/core.c b/drivers/usb/chipidea/core.c
index f568b8e86cee..15e03b308f8a 100644
--- a/drivers/usb/chipidea/core.c
+++ b/drivers/usb/chipidea/core.c
@@ -195,7 +195,7 @@ static int hw_device_init(struct ci13xxx *ci, void __iomem *base)
195 ffs_nr(DCCPARAMS_DEN); 195 ffs_nr(DCCPARAMS_DEN);
196 ci->hw_ep_max = reg * 2; /* cache hw ENDPT_MAX */ 196 ci->hw_ep_max = reg * 2; /* cache hw ENDPT_MAX */
197 197
198 if (ci->hw_ep_max == 0 || ci->hw_ep_max > ENDPT_MAX) 198 if (ci->hw_ep_max > ENDPT_MAX)
199 return -ENODEV; 199 return -ENODEV;
200 200
201 dev_dbg(ci->dev, "ChipIdea HDRC found, lpm: %d; cap: %p op: %p\n", 201 dev_dbg(ci->dev, "ChipIdea HDRC found, lpm: %d; cap: %p op: %p\n",