diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2013-09-20 12:02:24 +0530 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2013-09-26 13:49:27 +0300 |
commit | 090fd59308c9d50b8eabf71cd28b5513250a7b79 (patch) | |
tree | 19656a4050978ed8b4f1daabe273847034f3c0b7 /drivers/video/xilinxfb.c | |
parent | 3e3d2225aef52112de7ecffd9ce611eac8a9766d (diff) | |
download | lwn-090fd59308c9d50b8eabf71cd28b5513250a7b79.tar.gz lwn-090fd59308c9d50b8eabf71cd28b5513250a7b79.zip |
video: xilinxfb: Remove redundant dev_set_drvdata
Driver core sets driver data to NULL upon failure or remove.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'drivers/video/xilinxfb.c')
-rw-r--r-- | drivers/video/xilinxfb.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/video/xilinxfb.c b/drivers/video/xilinxfb.c index 84c664ea8eb9..0e1dd3380a1e 100644 --- a/drivers/video/xilinxfb.c +++ b/drivers/video/xilinxfb.c @@ -369,7 +369,6 @@ err_fbmem: err_region: kfree(drvdata); - dev_set_drvdata(dev, NULL); return rc; } @@ -404,7 +403,6 @@ static int xilinxfb_release(struct device *dev) #endif kfree(drvdata); - dev_set_drvdata(dev, NULL); return 0; } |