浏览代码

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>
Aaro Koskinen 10 年之前
父节点
当前提交
7d32cdef53
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      drivers/usb/musb/musb_core.c

+ 1 - 0
drivers/usb/musb/musb_core.c

@@ -2094,6 +2094,7 @@ musb_init_controller(struct device *dev, int nIrq, void __iomem *ctrl)
 #ifndef CONFIG_MUSB_PIO_ONLY
 #ifndef CONFIG_MUSB_PIO_ONLY
 	if (!musb->ops->dma_init || !musb->ops->dma_exit) {
 	if (!musb->ops->dma_init || !musb->ops->dma_exit) {
 		dev_err(dev, "DMA controller not set\n");
 		dev_err(dev, "DMA controller not set\n");
+		status = -ENODEV;
 		goto fail2;
 		goto fail2;
 	}
 	}
 	musb_dma_controller_create = musb->ops->dma_init;
 	musb_dma_controller_create = musb->ops->dma_init;