Skip to content

Commit

Permalink
mfd: Fix max8907 sparse warning
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Fengguang Wu authored and Samuel Ortiz committed Sep 23, 2012
1 parent eea6b7c commit 0f47191
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mfd/max8907.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 0f47191

Please sign in to comment.