Commit 090fd593 authored by Sachin Kamat's avatar Sachin Kamat Committed by Tomi Valkeinen

video: xilinxfb: Remove redundant dev_set_drvdata

Driver core sets driver data to NULL upon failure or remove.
Signed-off-by: default avatarSachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
parent 3e3d2225
...@@ -369,7 +369,6 @@ static int xilinxfb_assign(struct platform_device *pdev, ...@@ -369,7 +369,6 @@ static int xilinxfb_assign(struct platform_device *pdev,
err_region: err_region:
kfree(drvdata); kfree(drvdata);
dev_set_drvdata(dev, NULL);
return rc; return rc;
} }
...@@ -404,7 +403,6 @@ static int xilinxfb_release(struct device *dev) ...@@ -404,7 +403,6 @@ static int xilinxfb_release(struct device *dev)
#endif #endif
kfree(drvdata); kfree(drvdata);
dev_set_drvdata(dev, NULL);
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment