diff options
author | Aaro Koskinen <aaro.koskinen@iki.fi> | 2015-11-23 14:50:11 -0500 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2015-12-09 10:36:03 -0500 |
commit | 7d32cdef535622c0aea39807989f62cdddea207e (patch) | |
tree | c25db27235addfb82770332964b3f15fefea9c0c | |
parent | 27681abc429554622a188a3a0b213fb1c20040f7 (diff) |
usb: musb: fail with error when no DMA controller set
Fail with error when no DMA controller is set.
Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: Felipe Balbi <balbi@ti.com>
-rw-r--r-- | drivers/usb/musb/musb_core.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/musb/musb_core.c b/drivers/usb/musb/musb_core.c index 3c07ffd392cf..ee9ff7028b92 100644 --- a/drivers/usb/musb/musb_core.c +++ b/drivers/usb/musb/musb_core.c | |||
@@ -2094,6 +2094,7 @@ musb_init_controller(struct device *dev, int nIrq, void __iomem *ctrl) | |||
2094 | #ifndef CONFIG_MUSB_PIO_ONLY | 2094 | #ifndef CONFIG_MUSB_PIO_ONLY |
2095 | if (!musb->ops->dma_init || !musb->ops->dma_exit) { | 2095 | if (!musb->ops->dma_init || !musb->ops->dma_exit) { |
2096 | dev_err(dev, "DMA controller not set\n"); | 2096 | dev_err(dev, "DMA controller not set\n"); |
2097 | status = -ENODEV; | ||
2097 | goto fail2; | 2098 | goto fail2; |
2098 | } | 2099 | } |
2099 | musb_dma_controller_create = musb->ops->dma_init; | 2100 | musb_dma_controller_create = musb->ops->dma_init; |