aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/dma
diff options
context:
space:
mode:
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>2010-05-21 15:28:51 +0000
committerPaul Mundt <lethal@linux-sh.org>2010-05-22 17:06:34 +0900
commit7a5c106a0e8fd03a806d0da77eef10b4045c43a6 (patch)
tree610e6c8474d0d6d9947c3c90509b85319076841a /drivers/dma
parent85b8e3ffc47b2a1913be3079e9f1c1f66a6240b2 (diff)
downloadkernel_samsung_smdk4412-7a5c106a0e8fd03a806d0da77eef10b4045c43a6.zip
kernel_samsung_smdk4412-7a5c106a0e8fd03a806d0da77eef10b4045c43a6.tar.gz
kernel_samsung_smdk4412-7a5c106a0e8fd03a806d0da77eef10b4045c43a6.tar.bz2
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')
-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 a172752..427d514 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",
},
};