diff options
author | Colin Ian King <colin.king@canonical.com> | 2018-03-13 06:54:06 -0400 |
---|---|---|
committer | Sebastian Reichel <sebastian.reichel@collabora.co.uk> | 2018-03-13 07:10:04 -0400 |
commit | 93619fdec96fa1cd19e5dffc5031cf4c63e6b431 (patch) | |
tree | fd2ebf18450ed665481d64209e46a43b3ac955e5 | |
parent | 75dd56c0cd68847809e6e75d6fcc234e6e6711d5 (diff) |
power: reset: make function sc27xx_poweroff_shutdown static
The function sc27xx_poweroff_shutdown is local to the source and does
not need to be in global scope, so make it static.
Cleans up sparse warning:
drivers/power/reset/sc27xx-poweroff.c:28:6: warning: symbol
'sc27xx_poweroff_shutdown' was not declared. Should it be static?
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
-rw-r--r-- | drivers/power/reset/sc27xx-poweroff.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/power/reset/sc27xx-poweroff.c b/drivers/power/reset/sc27xx-poweroff.c index 65c477eee559..29fb08b8faa0 100644 --- a/drivers/power/reset/sc27xx-poweroff.c +++ b/drivers/power/reset/sc27xx-poweroff.c | |||
@@ -25,7 +25,7 @@ static struct regmap *regmap; | |||
25 | * taking cpus down to avoid racing regmap or spi mutex lock when poweroff | 25 | * taking cpus down to avoid racing regmap or spi mutex lock when poweroff |
26 | * system through PMIC. | 26 | * system through PMIC. |
27 | */ | 27 | */ |
28 | void sc27xx_poweroff_shutdown(void) | 28 | static void sc27xx_poweroff_shutdown(void) |
29 | { | 29 | { |
30 | #ifdef CONFIG_PM_SLEEP_SMP | 30 | #ifdef CONFIG_PM_SLEEP_SMP |
31 | int cpu = smp_processor_id(); | 31 | int cpu = smp_processor_id(); |