Commit ad517e9e authored by Felipe Balbi's avatar Felipe Balbi Committed by Greg Kroah-Hartman

USB: musb: we already tested for dyn_fifo

... and even added a flag to struct musb, so let's
use that.
Signed-off-by: default avatarFelipe Balbi <felipe.balbi@nokia.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 8573e6a6
...@@ -1398,21 +1398,10 @@ static int __init musb_core_init(u16 musb_type, struct musb *musb) ...@@ -1398,21 +1398,10 @@ static int __init musb_core_init(u16 musb_type, struct musb *musb)
musb->nr_endpoints = 1; musb->nr_endpoints = 1;
musb->epmask = 1; musb->epmask = 1;
if (reg & MUSB_CONFIGDATA_DYNFIFO) { if (musb->dyn_fifo)
if (musb->config->dyn_fifo) status = ep_config_from_table(musb);
status = ep_config_from_table(musb); else
else { status = ep_config_from_hw(musb);
ERR("reconfigure software for Dynamic FIFOs\n");
status = -ENODEV;
}
} else {
if (!musb->config->dyn_fifo)
status = ep_config_from_hw(musb);
else {
ERR("reconfigure software for static FIFOs\n");
return -ENODEV;
}
}
if (status < 0) if (status < 0)
return status; return status;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment