From 2110060d27c064172bb9d98a402e2b25957af744 Mon Sep 17 00:00:00 2001 From: Dirk Behme Date: Mon, 8 Oct 2007 20:35:14 +0200 Subject: [PATCH] ARM: OMAP: Fix musb_core parameter passing to cppi start cppi_controller_start() expects a struct dma_controller as parameter and not dma_controller private_data. Current implementation crashes with e.g. Internal error: Oops: 805 [#1] Modules linked in: CPU: 0 Not tainted (2.6.23-rc4-davinci1 #2) PC is at cppi_controller_start+0x18/0x140 LR is at musb_probe+0x1f4/0x824 Fix this. Initial proposal for fix by David Brownell. Thanks! Signed-off-by: Dirk Behme Signed-off-by: Tony Lindgren --- drivers/usb/musb/musb_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/musb/musb_core.c b/drivers/usb/musb/musb_core.c index 9a73de521a8..3093bda5426 100644 --- a/drivers/usb/musb/musb_core.c +++ b/drivers/usb/musb/musb_core.c @@ -1980,7 +1980,7 @@ musb_init_controller(struct device *dev, int nIrq, void __iomem *ctrl) c = dma_controller_create(musb, musb->mregs); musb->dma_controller = c; if (c) - (void) c->start(c->private_data); + (void) c->start(c); } #endif /* ideally this would be abstracted in platform setup */ -- 2.41.1