sh: prevent the DMA driver from unloading, while in use
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Fri, 21 May 2010 15:28:51 +0000 (15:28 +0000)
committerPaul Mundt <lethal@linux-sh.org>
Sat, 22 May 2010 08:06:34 +0000 (17:06 +0900)
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 <g.liakhovetski@gmx.de>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
drivers/dma/shdma.c

index a1727522343e914ee63a5bf064ede9544374abdc..427d514796dd28d8547c48e3ffe15ca16247fcef 100644 (file)
@@ -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",
        },
 };