]> git.karo-electronics.de Git - karo-tx-linux.git/commit
dma: use platform_{get,set}_drvdata()
authorJingoo Han <jg1.han@samsung.com>
Fri, 24 May 2013 01:10:13 +0000 (10:10 +0900)
committerVinod Koul <vinod.koul@intel.com>
Wed, 12 Jun 2013 02:18:52 +0000 (07:48 +0530)
commit0189c465eb7890c7e1befdcc3e6e71654b14edc9
treea5146a1293c450364b56a3734c2ebf66f3c837e4
parent48b98d83d9e6b984d0ca9d7a16e9b15905bcace9
dma: use platform_{get,set}_drvdata()

Use the wrapper functions for getting and setting the driver data using
platform_device instead of using dev_{get,set}_drvdata() with &pdev->dev,
so we can directly pass a struct platform_device.

Also, unnecessary dev_set_drvdata() is removed, because the driver core
clears the driver data to NULL after device_release or on probe failure.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/fsldma.c
drivers/dma/ppc4xx/adma.c