summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorFengguang Wu <fengguang.wu@intel.com>2012-09-20 16:10:46 +0200
committerSamuel Ortiz <sameo@linux.intel.com>2012-09-23 20:51:35 +0200
commit0f471916d4d03503cf6fb696f7c8baf12fec30b9 (patch)
tree8f1b4c1e82ca1e0733da9985663b473a665da9a5 /drivers
parenteea6b7cc53aaecf868e1643058159807c744e04e (diff)
downloadlinux-3.10-0f471916d4d03503cf6fb696f7c8baf12fec30b9.tar.gz
linux-3.10-0f471916d4d03503cf6fb696f7c8baf12fec30b9.tar.bz2
linux-3.10-0f471916d4d03503cf6fb696f7c8baf12fec30b9.zip
mfd: Fix max8907 sparse warning
This fixes: drivers/mfd/max8907.c:179:16: sparse: symbol 'max8907_pm_off' was not declared. Should it be static? Signed-off-by: Fengguang Wu <fengguang.wu@intel.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mfd/max8907.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mfd/max8907.c b/drivers/mfd/max8907.c
index 2303641dd05..17f2593d82b 100644
--- a/drivers/mfd/max8907.c
+++ b/drivers/mfd/max8907.c
@@ -176,7 +176,7 @@ static const struct regmap_irq_chip max8907_rtc_irq_chip = {
.num_irqs = ARRAY_SIZE(max8907_rtc_irqs),
};
-struct max8907 *max8907_pm_off;
+static struct max8907 *max8907_pm_off;
static void max8907_power_off(void)
{
regmap_update_bits(max8907_pm_off->regmap_gen, MAX8907_REG_RESET_CNFG,