sh: prevent the DMA driver from unloading, while in use
authorGuennadi Liakhovetski <[email protected]>
Fri, 21 May 2010 15:28:51 +0000 (15:28 +0000)
committerPaul Mundt <[email protected]>
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 <[email protected]>
Signed-off-by: Paul Mundt <[email protected]>
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",
        },
 };