aboutsummaryrefslogtreecommitdiff
path: root/drivers/mfd/max8907.c
diff options
context:
space:
mode:
authorFengguang Wu2012-09-20 16:10:46 +0200
committerSamuel Ortiz2012-09-23 20:51:35 +0200
commit0f471916d4d03503cf6fb696f7c8baf12fec30b9 (patch)
tree8f1b4c1e82ca1e0733da9985663b473a665da9a5 /drivers/mfd/max8907.c
parenteea6b7cc53aaecf868e1643058159807c744e04e (diff)
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/mfd/max8907.c')
-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 2303641dd052..17f2593d82b8 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,