Staging: fbtft: fbtft-core: Removed unnecessary checks

The driver core clears the driver data to NULL after device_release
or on probe failure.

Signed-off-by: Nizam Haider <nijamh@cdac.in>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Nizam Haider 2015-11-22 09:39:26 +05:30 committed by Greg Kroah-Hartman
parent de593dca1b
commit 2fe9f8caad
1 changed files with 0 additions and 4 deletions

View File

@ -989,8 +989,6 @@ reg_fail:
par->fbtftops.unregister_backlight(par);
if (spi)
spi_set_drvdata(spi, NULL);
if (par->pdev)
platform_set_drvdata(par->pdev, NULL);
return ret;
}
@ -1012,8 +1010,6 @@ int fbtft_unregister_framebuffer(struct fb_info *fb_info)
if (spi)
spi_set_drvdata(spi, NULL);
if (par->pdev)
platform_set_drvdata(par->pdev, NULL);
if (par->fbtftops.unregister_backlight)
par->fbtftops.unregister_backlight(par);
fbtft_sysfs_exit(par);