浏览代码

dma: mmp_pdma: add missing platform_set_drvdata() in mmp_pdma_probe()

Add missing platform_set_drvdata() in mmp_pdma_probe(), otherwise
calling platform_get_drvdata() in mmp_pdma_remove() returns NULL.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Wei Yongjun 11 年之前
父节点
当前提交
086b0af19a
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      drivers/dma/mmp_pdma.c

+ 1 - 0
drivers/dma/mmp_pdma.c

@@ -1017,6 +1017,7 @@ static int mmp_pdma_probe(struct platform_device *op)
 		}
 	}
 
+	platform_set_drvdata(op, pdev);
 	dev_info(pdev->device.dev, "initialized %d channels\n", dma_channels);
 	return 0;
 }