From: Stephen Rothwell Date: Fri, 1 Jul 2011 05:34:22 +0000 (+1000) Subject: backlight: make some varibales static X-Git-Tag: next-20110726~2^2~54 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=83a2dce69ca4b4dde6ff75b8fdca6537437ff3b4;p=karo-tx-linux.git backlight: make some varibales static 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 Cc: Jingoo Han Cc: Richard Purdie Cc: Inki Dae Cc: anish singh Signed-off-by: Andrew Morton --- diff --git a/drivers/video/backlight/ams369fg06.c b/drivers/video/backlight/ams369fg06.c index 86a7dafcfd70..d1d8237bc4d8 100644 --- a/drivers/video/backlight/ams369fg06.c +++ b/drivers/video/backlight/ams369fg06.c @@ -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) { diff --git a/drivers/video/backlight/s6e63m0.c b/drivers/video/backlight/s6e63m0.c index 322040f686c2..e1803ba23176 100644 --- a/drivers/video/backlight/s6e63m0.c +++ b/drivers/video/backlight/s6e63m0.c @@ -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) {