diff options
author | Richard Zhao <richard.zhao@freescale.com> | 2012-05-15 21:58:18 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-05-15 08:43:40 -0700 |
commit | 09c94e628ac3f871f06eaa7a5be266ca1aaa75a1 (patch) | |
tree | 5e7a06cae3dd8c2fd5eae05575193e5f614b1894 /drivers/usb | |
parent | a756186b61d487c067411764080fd48f995d3799 (diff) | |
download | kernel_goldelico_gta04-09c94e628ac3f871f06eaa7a5be266ca1aaa75a1.zip kernel_goldelico_gta04-09c94e628ac3f871f06eaa7a5be266ca1aaa75a1.tar.gz kernel_goldelico_gta04-09c94e628ac3f871f06eaa7a5be266ca1aaa75a1.tar.bz2 |
usb: chipidea: remove zero check of hw_ep_max
It's 0 for host only device.
Signed-off-by: Richard Zhao <richard.zhao@freescale.com>
Cc: Marek Vasut <marex@denx.de>
Cc: Alan Stern <stern@rowland.harvard.edu>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/chipidea/core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/chipidea/core.c b/drivers/usb/chipidea/core.c index f568b8e..15e03b3 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) ffs_nr(DCCPARAMS_DEN); ci->hw_ep_max = reg * 2; /* cache hw ENDPT_MAX */ - if (ci->hw_ep_max == 0 || ci->hw_ep_max > ENDPT_MAX) + if (ci->hw_ep_max > ENDPT_MAX) return -ENODEV; dev_dbg(ci->dev, "ChipIdea HDRC found, lpm: %d; cap: %p op: %p\n", |