aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/dma/shdma.c
diff options
context:
space:
mode:
authorDan Williams <dan.j.williams@intel.com>2009-12-22 19:21:47 -0500
committerDan Williams <dan.j.williams@intel.com>2009-12-22 19:21:47 -0500
commitf80ca163d65903276bec7045a484a79c0897eb2d (patch)
tree97c7d61d43248b9db0757a76af80ff58b98b5599 /drivers/dma/shdma.c
parent0794ec8ce327ec74416b569b8fb1951274693700 (diff)
parenta6d52d70677e99bdb89b6921c265d0a58c22e597 (diff)
Merge branch 'ioat' into fixes
Diffstat (limited to 'drivers/dma/shdma.c')
-rw-r--r--drivers/dma/shdma.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/drivers/dma/shdma.c b/drivers/dma/shdma.c
index 9546f5f356eb..d10cc899c460 100644
--- a/drivers/dma/shdma.c
+++ b/drivers/dma/shdma.c
@@ -730,17 +730,16 @@ static int __init sh_dmae_probe(struct platform_device *pdev)
730#endif 730#endif
731 struct sh_dmae_device *shdev; 731 struct sh_dmae_device *shdev;
732 732
733 /* get platform data */
734 if (!pdev->dev.platform_data)
735 return -ENODEV;
736
733 shdev = kzalloc(sizeof(struct sh_dmae_device), GFP_KERNEL); 737 shdev = kzalloc(sizeof(struct sh_dmae_device), GFP_KERNEL);
734 if (!shdev) { 738 if (!shdev) {
735 dev_err(&pdev->dev, "No enough memory\n"); 739 dev_err(&pdev->dev, "No enough memory\n");
736 err = -ENOMEM; 740 return -ENOMEM;
737 goto shdev_err;
738 } 741 }
739 742
740 /* get platform data */
741 if (!pdev->dev.platform_data)
742 goto shdev_err;
743
744 /* platform data */ 743 /* platform data */
745 memcpy(&shdev->pdata, pdev->dev.platform_data, 744 memcpy(&shdev->pdata, pdev->dev.platform_data,
746 sizeof(struct sh_dmae_pdata)); 745 sizeof(struct sh_dmae_pdata));
@@ -814,7 +813,6 @@ eirq_err:
814rst_err: 813rst_err:
815 kfree(shdev); 814 kfree(shdev);
816 815
817shdev_err:
818 return err; 816 return err;
819} 817}
820 818