From: Jingoo Han Date: Wed, 21 Aug 2013 09:52:54 +0000 (+0900) Subject: dma: ipu: remove unnecessary platform_set_drvdata() X-Git-Tag: upstream/snapshot3+hdmi~4358^2~40 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4d1b80bf7a5ae9829b8c741bfab7d9e03533e6b1;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git dma: ipu: 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 Acked-by: Shawn Guo Signed-off-by: Vinod Koul --- diff --git a/drivers/dma/ipu/ipu_idmac.c b/drivers/dma/ipu/ipu_idmac.c index 608d4a2..cb9c0bc 100644 --- a/drivers/dma/ipu/ipu_idmac.c +++ b/drivers/dma/ipu/ipu_idmac.c @@ -1764,7 +1764,6 @@ static int ipu_remove(struct platform_device *pdev) iounmap(ipu->reg_ic); iounmap(ipu->reg_ipu); tasklet_kill(&ipu->tasklet); - platform_set_drvdata(pdev, NULL); return 0; }