diff options
-rw-r--r-- | drivers/usb/musb/musb_core.c | 19 |
1 files changed, 4 insertions, 15 deletions
diff --git a/drivers/usb/musb/musb_core.c b/drivers/usb/musb/musb_core.c index a6dc18cde27b..3e9b3b0e9c0d 100644 --- a/drivers/usb/musb/musb_core.c +++ b/drivers/usb/musb/musb_core.c | |||
@@ -1398,21 +1398,10 @@ static int __init musb_core_init(u16 musb_type, struct musb *musb) | |||
1398 | musb->nr_endpoints = 1; | 1398 | musb->nr_endpoints = 1; |
1399 | musb->epmask = 1; | 1399 | musb->epmask = 1; |
1400 | 1400 | ||
1401 | if (reg & MUSB_CONFIGDATA_DYNFIFO) { | 1401 | if (musb->dyn_fifo) |
1402 | if (musb->config->dyn_fifo) | 1402 | status = ep_config_from_table(musb); |
1403 | status = ep_config_from_table(musb); | 1403 | else |
1404 | else { | 1404 | status = ep_config_from_hw(musb); |
1405 | ERR("reconfigure software for Dynamic FIFOs\n"); | ||
1406 | status = -ENODEV; | ||
1407 | } | ||
1408 | } else { | ||
1409 | if (!musb->config->dyn_fifo) | ||
1410 | status = ep_config_from_hw(musb); | ||
1411 | else { | ||
1412 | ERR("reconfigure software for static FIFOs\n"); | ||
1413 | return -ENODEV; | ||
1414 | } | ||
1415 | } | ||
1416 | 1405 | ||
1417 | if (status < 0) | 1406 | if (status < 0) |
1418 | return status; | 1407 | return status; |