Kaynağa Gözat

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>
Guennadi Liakhovetski 15 yıl önce
ebeveyn
işleme
7a5c106a0e
1 değiştirilmiş dosya ile 1 ekleme ve 0 silme
  1. 1 0
      drivers/dma/shdma.c

+ 1 - 0
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",
 	},
 };