]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
backlight: make some varibales static
authorStephen Rothwell <sfr@canb.auug.org.au>
Fri, 1 Jul 2011 05:34:22 +0000 (15:34 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 26 Jul 2011 05:05:07 +0000 (15:05 +1000)
fixes this build error:

drivers/video/backlight/ams369fg06.o:(.bss+0x510): multiple definition of `before_power'
drivers/video/backlight/s6e63m0.o:(.bss+0x5e0): first defined here

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Cc: Jingoo Han <jg1.han@samsung.com>
Cc: Richard Purdie <rpurdie@rpsys.net>
Cc: Inki Dae <inki.dae@samsung.com>
Cc: anish singh <anish198519851985@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/video/backlight/ams369fg06.c
drivers/video/backlight/s6e63m0.c

index 86a7dafcfd7099ef3cbb0d8831442a7ca2822d79..d1d8237bc4d852b0092b75764335a4e20c633410 100644 (file)
@@ -560,7 +560,7 @@ static int __devexit ams369fg06_remove(struct spi_device *spi)
 }
 
 #if defined(CONFIG_PM)
-unsigned int before_power;
+static unsigned int before_power;
 
 static int ams369fg06_suspend(struct spi_device *spi, pm_message_t mesg)
 {
index 322040f686c2c7bd9be40932fda03392cbfb3577..e1803ba231760b828d7066b6c1da966867fb0545 100644 (file)
@@ -840,7 +840,7 @@ static int __devexit s6e63m0_remove(struct spi_device *spi)
 }
 
 #if defined(CONFIG_PM)
-unsigned int before_power;
+static unsigned int before_power;
 
 static int s6e63m0_suspend(struct spi_device *spi, pm_message_t mesg)
 {