diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2019-01-11 04:51:32 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-01-22 04:23:18 -0500 |
commit | 91f382a46822c7a2913e6fabb2b882cc0f23144a (patch) | |
tree | 8a1724f09c18f2aac3bb150f7f8f9714841b65d6 /drivers/base/firmware_loader/fallback_table.c | |
parent | 925f8d4aad5ca1bf18987a3cdcb0e176bddddcf1 (diff) |
firmware_loader: move CONFIG_FW_LOADER_USER_HELPER switch to Makefile
The whole code of fallback_table.c is surrounded by #ifdef of
CONFIG_FW_LOADER_USER_HELPER.
Move the CONFIG_FW_LOADER_USER_HELPER switch to Makefile so that
it is not compiled at all when this CONFIG option is disabled.
I also removed the confusing comment, "Module or buit-in [sic]".
CONFIG_FW_LOADER_USER_HELPER is a boolean option.
(If it were a module, CONFIG_FW_LOADER_USER_HELPER_MODULE would
be defined instead.)
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/base/firmware_loader/fallback_table.c')
-rw-r--r-- | drivers/base/firmware_loader/fallback_table.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/base/firmware_loader/fallback_table.c b/drivers/base/firmware_loader/fallback_table.c index 7428659d8df9..776dd69cf5be 100644 --- a/drivers/base/firmware_loader/fallback_table.c +++ b/drivers/base/firmware_loader/fallback_table.c | |||
@@ -16,9 +16,6 @@ | |||
16 | * firmware fallback configuration table | 16 | * firmware fallback configuration table |
17 | */ | 17 | */ |
18 | 18 | ||
19 | /* Module or buit-in */ | ||
20 | #ifdef CONFIG_FW_LOADER_USER_HELPER | ||
21 | |||
22 | static unsigned int zero; | 19 | static unsigned int zero; |
23 | static unsigned int one = 1; | 20 | static unsigned int one = 1; |
24 | 21 | ||
@@ -51,5 +48,3 @@ struct ctl_table firmware_config_table[] = { | |||
51 | { } | 48 | { } |
52 | }; | 49 | }; |
53 | EXPORT_SYMBOL_GPL(firmware_config_table); | 50 | EXPORT_SYMBOL_GPL(firmware_config_table); |
54 | |||
55 | #endif | ||