mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
video: fbdev: atmel_lcdfb: remove set but not used variable 'pdata'
Fixes gcc '-Wunused-but-set-variable' warning:
drivers/video/fbdev/atmel_lcdfb.c: In function 'atmel_lcdfb_remove':
drivers/video/fbdev/atmel_lcdfb.c:1255:28: warning:
variable 'pdata' set but not used [-Wunused-but-set-variable]
It's not used since commit 42110e91de ("video: atmel_lcdfb: introduce
atmel_lcdfb_power_control")
Signed-off-by: YueHaibing <[email protected]>
Acked-by: Nicolas Ferre <[email protected]>
Cc: Alexandre Belloni <[email protected]>
Cc: Ludovic Desroches <[email protected]>
Signed-off-by: Bartlomiej Zolnierkiewicz <[email protected]>
This commit is contained in:
parent
de110fddcb
commit
261ac4ddfa
1 changed files with 0 additions and 2 deletions
|
|
@ -1252,12 +1252,10 @@ static int __exit atmel_lcdfb_remove(struct platform_device *pdev)
|
|||
struct device *dev = &pdev->dev;
|
||||
struct fb_info *info = dev_get_drvdata(dev);
|
||||
struct atmel_lcdfb_info *sinfo;
|
||||
struct atmel_lcdfb_pdata *pdata;
|
||||
|
||||
if (!info || !info->par)
|
||||
return 0;
|
||||
sinfo = info->par;
|
||||
pdata = &sinfo->pdata;
|
||||
|
||||
cancel_work_sync(&sinfo->task);
|
||||
exit_backlight(sinfo);
|
||||
|
|
|
|||
Loading…
Reference in a new issue