Skip to content

Commit 7d32cde

Browse files
aakoskinFelipe Balbi
authored andcommitted
usb: musb: fail with error when no DMA controller set
Fail with error when no DMA controller is set. Signed-off-by: Aaro Koskinen <[email protected]> Signed-off-by: Felipe Balbi <[email protected]>
1 parent 27681ab commit 7d32cde

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/usb/musb/musb_core.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2094,6 +2094,7 @@ musb_init_controller(struct device *dev, int nIrq, void __iomem *ctrl)
20942094
#ifndef CONFIG_MUSB_PIO_ONLY
20952095
if (!musb->ops->dma_init || !musb->ops->dma_exit) {
20962096
dev_err(dev, "DMA controller not set\n");
2097+
status = -ENODEV;
20972098
goto fail2;
20982099
}
20992100
musb_dma_controller_create = musb->ops->dma_init;

0 commit comments

Comments
 (0)