Driver core sets driver data to NULL upon failure or remove. Signed-off-by: Sachin Kamat <sachin.kamat@xxxxxxxxxx> --- drivers/video/xilinxfb.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/video/xilinxfb.c b/drivers/video/xilinxfb.c index 84c664e..0e1dd33 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; } -- 1.7.9.5 -- To unsubscribe from this list: send the line "unsubscribe linux-fbdev" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html