diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-08-06 05:43:18 -0400 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2013-08-16 10:47:30 -0400 |
commit | b3abebc777015a445a95548aafe2d3a4b116288e (patch) | |
tree | 9f0b934955f7293e5dbe8f6a03bbab867e014164 /drivers/gpio/gpio-msm-v2.c | |
parent | eddf8176b57ddb8f960b188eb8796b9d13e4efc0 (diff) |
gpio: msm: Staticize local variable 'msm_gpio'
The local variable 'msm_gpio' is used only in this file.
Fix the following sparse warning:
drivers/gpio/gpio-msm-v2.c:109:21: warning: symbol 'msm_gpio' was not declared. Should it be static?
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio/gpio-msm-v2.c')
-rw-r--r-- | drivers/gpio/gpio-msm-v2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-msm-v2.c b/drivers/gpio/gpio-msm-v2.c index f4491a497cc8..27fe8b11b67a 100644 --- a/drivers/gpio/gpio-msm-v2.c +++ b/drivers/gpio/gpio-msm-v2.c | |||
@@ -106,7 +106,7 @@ struct msm_gpio_dev { | |||
106 | void __iomem *msm_tlmm_base; | 106 | void __iomem *msm_tlmm_base; |
107 | }; | 107 | }; |
108 | 108 | ||
109 | struct msm_gpio_dev msm_gpio; | 109 | static struct msm_gpio_dev msm_gpio; |
110 | 110 | ||
111 | #define GPIO_INTR_CFG_SU(gpio) (msm_gpio.msm_tlmm_base + 0x0400 + \ | 111 | #define GPIO_INTR_CFG_SU(gpio) (msm_gpio.msm_tlmm_base + 0x0400 + \ |
112 | (0x04 * (gpio))) | 112 | (0x04 * (gpio))) |