Skip to content

Commit

Permalink
dma: mmp_pdma: add missing platform_set_drvdata() in mmp_pdma_probe()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Wei Yongjun authored and Vinod Koul committed Nov 28, 2013
1 parent 415612c commit 086b0af
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/dma/mmp_pdma.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 086b0af

Please sign in to comment.