aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/dma
diff options
context:
space:
mode:
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>2010-05-21 11:28:51 -0400
committerPaul Mundt <lethal@linux-sh.org>2010-05-22 04:06:34 -0400
commit7a5c106a0e8fd03a806d0da77eef10b4045c43a6 (patch)
tree610e6c8474d0d6d9947c3c90509b85319076841a /drivers/dma
parent85b8e3ffc47b2a1913be3079e9f1c1f66a6240b2 (diff)
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 a1727522343e..427d514796dd 100644
--- a/drivers/dma/shdma.c
+++ b/drivers/dma/shdma.c
@@ -1188,6 +1188,7 @@ static struct platform_driver sh_dmae_driver = {
1188 .remove = __exit_p(sh_dmae_remove), 1188 .remove = __exit_p(sh_dmae_remove),
1189 .shutdown = sh_dmae_shutdown, 1189 .shutdown = sh_dmae_shutdown,
1190 .driver = { 1190 .driver = {
1191 .owner = THIS_MODULE,
1191 .name = "sh-dma-engine", 1192 .name = "sh-dma-engine",
1192 }, 1193 },
1193}; 1194};