linux-usb.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3] usb: musb: dma: Correct parameter passed to IRQ handler
@ 2019-06-20 17:34 Paul Cercueil
  2019-06-20 17:34 ` [PATCH 2/3] usb: musb: dma: Add support for shared IRQ Paul Cercueil
  2019-06-20 17:34 ` [PATCH 3/3] usb: musb: jz4740: Add support for DMA Paul Cercueil
  0 siblings, 2 replies; 3+ messages in thread
From: Paul Cercueil @ 2019-06-20 17:34 UTC (permalink / raw)
  To: Bin Liu; +Cc: od, linux-usb, linux-kernel, Paul Cercueil, Artur Rojek

The IRQ handler was passed a pointer to a struct dma_controller, but the
argument was then casted to a pointer to a struct musb_dma_controller.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Tested-by: Artur Rojek <contact@artur-rojek.eu>
---
 drivers/usb/musb/musbhsdma.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/usb/musb/musbhsdma.c b/drivers/usb/musb/musbhsdma.c
index 5fc6825745f2..2d3751d885b4 100644
--- a/drivers/usb/musb/musbhsdma.c
+++ b/drivers/usb/musb/musbhsdma.c
@@ -425,7 +425,7 @@ struct dma_controller *musbhs_dma_controller_create(struct musb *musb,
 	controller->controller.channel_abort = dma_channel_abort;
 
 	if (request_irq(irq, dma_controller_irq, 0,
-			dev_name(musb->controller), &controller->controller)) {
+			dev_name(musb->controller), controller)) {
 		dev_err(dev, "request_irq %d failed!\n", irq);
 		musb_dma_controller_destroy(&controller->controller);
 
-- 
2.21.0.593.g511ec345e18


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-06-20 17:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-20 17:34 [PATCH 1/3] usb: musb: dma: Correct parameter passed to IRQ handler Paul Cercueil
2019-06-20 17:34 ` [PATCH 2/3] usb: musb: dma: Add support for shared IRQ Paul Cercueil
2019-06-20 17:34 ` [PATCH 3/3] usb: musb: jz4740: Add support for DMA Paul Cercueil

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).