diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-08-26 04:32:05 +0400 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2013-08-27 12:56:29 +0400 |
commit | eb262a5419708319a3174d4ddf2777f472779182 (patch) | |
tree | 35861017dedc9c6ae9a68eed3e532a29b3359616 /drivers/dma/sh/sudmac.c | |
parent | 1e69653d40f1a280dbfef48b0c62473ac415dd57 (diff) | |
download | linux-eb262a5419708319a3174d4ddf2777f472779182.tar.xz |
dma: sh: remove unnecessary platform_set_drvdata()
The driver core clears the driver data to NULL after device_release
or on probe failure. Thus, it is not needed to manually clear the
device driver data to NULL.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Acked-by: Simon Horman <horms+renesas@verge.net.au>
Acked-by: Guennadi Liakhovetski <g.liakhovetski+renesas@gmail.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma/sh/sudmac.c')
-rw-r--r-- | drivers/dma/sh/sudmac.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/dma/sh/sudmac.c b/drivers/dma/sh/sudmac.c index 4600b429603e..90ba2ded2455 100644 --- a/drivers/dma/sh/sudmac.c +++ b/drivers/dma/sh/sudmac.c @@ -391,7 +391,6 @@ static int sudmac_probe(struct platform_device *pdev) chan_probe_err: sudmac_chan_remove(su_dev); - platform_set_drvdata(pdev, NULL); shdma_cleanup(&su_dev->shdma_dev); return err; @@ -405,7 +404,6 @@ static int sudmac_remove(struct platform_device *pdev) dma_async_device_unregister(dma_dev); sudmac_chan_remove(su_dev); shdma_cleanup(&su_dev->shdma_dev); - platform_set_drvdata(pdev, NULL); return 0; } |