]> 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>
Mon, 27 May 2013 04:02:12 +0000 (09:32 +0530)
commit939546d552e1dac18a9b18916ee6adab87993310
treea1fcda6323d675f5db39bb0ef218614baab34bf7
parent7c407d3e54dcc0c79119553c8d5ef176c1d5bc3a
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