From 0f471916d4d03503cf6fb696f7c8baf12fec30b9 Mon Sep 17 00:00:00 2001 From: Fengguang Wu Date: Thu, 20 Sep 2012 16:10:46 +0200 Subject: 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 Signed-off-by: Samuel Ortiz --- drivers/mfd/max8907.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers/mfd') 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, -- cgit v1.2.3