Commit 0f471916d4d03503cf6fb696f7c8baf12fec30b9
Committed by
Samuel Ortiz
1 parent
eea6b7cc53
Exists in
smarc-l5.0.0_1.0.0-ga
and in
5 other branches
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>
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
drivers/mfd/max8907.c
... | ... | @@ -176,7 +176,7 @@ |
176 | 176 | .num_irqs = ARRAY_SIZE(max8907_rtc_irqs), |
177 | 177 | }; |
178 | 178 | |
179 | -struct max8907 *max8907_pm_off; | |
179 | +static struct max8907 *max8907_pm_off; | |
180 | 180 | static void max8907_power_off(void) |
181 | 181 | { |
182 | 182 | regmap_update_bits(max8907_pm_off->regmap_gen, MAX8907_REG_RESET_CNFG, |