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 <[email protected]>
Signed-off-by: Vinod Koul <[email protected]>
This commit is contained in:
Wei Yongjun 2013-11-25 15:15:14 +08:00 • committed by Vinod Koul
commit 086b0af19a

View file

@ -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;
}