From: Guennadi Liakhovetski Date: Fri, 21 May 2010 15:28:51 +0000 (+0000) Subject: sh: prevent the DMA driver from unloading, while in use X-Git-Tag: v2.6.35-rc1~414^2~4 X-Git-Url: http://bbs.cooldavid.org/git/?a=commitdiff_plain;h=7a5c106a0e8fd03a806d0da77eef10b4045c43a6;p=net-next-2.6.git sh: prevent the DMA driver from unloading, while in use This prevents the driver from unloading, while it is in use. Unloading of the driver, while its DMA channels are held, leads to a kernel Oops. Signed-off-by: Guennadi Liakhovetski Signed-off-by: Paul Mundt --- diff --git a/drivers/dma/shdma.c b/drivers/dma/shdma.c index a1727522343..427d514796d 100644 --- a/drivers/dma/shdma.c +++ b/drivers/dma/shdma.c @@ -1188,6 +1188,7 @@ static struct platform_driver sh_dmae_driver = { .remove = __exit_p(sh_dmae_remove), .shutdown = sh_dmae_shutdown, .driver = { + .owner = THIS_MODULE, .name = "sh-dma-engine", }, };