diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-07-30 17:09:11 +0900 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2013-08-13 16:56:41 +0530 |
commit | d4adcc0160404c3237fe6ffa09dd2dd039dd3975 (patch) | |
tree | aa9d7b76f16d21b38ffb8dbfe3c12986b0fd97f9 /drivers/dma/mv_xor.c | |
parent | 696b4ff8b2e6fd3f01c9acf6687ec4660143b614 (diff) | |
download | linux-stable-d4adcc0160404c3237fe6ffa09dd2dd039dd3975.tar.gz linux-stable-d4adcc0160404c3237fe6ffa09dd2dd039dd3975.tar.bz2 linux-stable-d4adcc0160404c3237fe6ffa09dd2dd039dd3975.zip |
dma: use dev_get_platdata()
Use the wrapper function for retrieving the platform data instead of
accessing dev->platform_data directly.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma/mv_xor.c')
-rw-r--r-- | drivers/dma/mv_xor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dma/mv_xor.c b/drivers/dma/mv_xor.c index 534e2febd277..d9a26777a1b0 100644 --- a/drivers/dma/mv_xor.c +++ b/drivers/dma/mv_xor.c @@ -1166,7 +1166,7 @@ static int mv_xor_probe(struct platform_device *pdev) { const struct mbus_dram_target_info *dram; struct mv_xor_device *xordev; - struct mv_xor_platform_data *pdata = pdev->dev.platform_data; + struct mv_xor_platform_data *pdata = dev_get_platdata(&pdev->dev); struct resource *res; int i, ret; |