]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
backlight-add-lms501kf03-lcd-driver-fix
authorAndrew Morton <akpm@linux-foundation.org>
Thu, 7 Feb 2013 01:27:20 +0000 (12:27 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 18 Feb 2013 05:47:00 +0000 (16:47 +1100)
remove unused variable `before_power'

Cc: "devendra.aaru" <devendra.aaru@gmail.com>
Cc: Ilho Lee <Ilho215.lee@samsung.com>
Cc: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/video/backlight/lms501kf03.c

index af7979d7e1718acadbdd057e3350a99909350bdc..f904abc52d84ee432231adbe26e25fd89831ab25 100644 (file)
@@ -388,7 +388,6 @@ static int lms501kf03_remove(struct spi_device *spi)
 }
 
 #if defined(CONFIG_PM)
-static unsigned int before_power;
 
 static int lms501kf03_suspend(struct spi_device *spi, pm_message_t mesg)
 {
@@ -396,8 +395,6 @@ static int lms501kf03_suspend(struct spi_device *spi, pm_message_t mesg)
 
        dev_dbg(&spi->dev, "lcd->power = %d\n", lcd->power);
 
-       before_power = lcd->power;
-
        /*
         * when lcd panel is suspend, lcd panel becomes off
         * regardless of status.