summaryrefslogtreecommitdiffstats
path: root/drivers/dma/shdma.c
diff options
context:
space:
mode:
authorGuennadi Liakhovetski2010-05-21 17:28:51 +0200
committerPaul Mundt2010-05-22 10:06:34 +0200
commit7a5c106a0e8fd03a806d0da77eef10b4045c43a6 (patch)
tree610e6c8474d0d6d9947c3c90509b85319076841a /drivers/dma/shdma.c
parentsh: fix Oops in the serial SCI driver (diff)
downloadkernel-qcow2-linux-7a5c106a0e8fd03a806d0da77eef10b4045c43a6.tar.gz
kernel-qcow2-linux-7a5c106a0e8fd03a806d0da77eef10b4045c43a6.tar.xz
kernel-qcow2-linux-7a5c106a0e8fd03a806d0da77eef10b4045c43a6.zip
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 <g.liakhovetski@gmx.de> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'drivers/dma/shdma.c')
-rw-r--r--drivers/dma/shdma.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/dma/shdma.c b/drivers/dma/shdma.c
index a1727522343e..427d514796dd 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",
},
};