]> asedeno.scripts.mit.edu Git - linux.git/commit
firmware_loader: move CONFIG_FW_LOADER_USER_HELPER switch to Makefile
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Fri, 11 Jan 2019 09:51:32 +0000 (18:51 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 22 Jan 2019 09:23:18 +0000 (10:23 +0100)
commit91f382a46822c7a2913e6fabb2b882cc0f23144a
tree8a1724f09c18f2aac3bb150f7f8f9714841b65d6
parent925f8d4aad5ca1bf18987a3cdcb0e176bddddcf1
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>
drivers/base/firmware_loader/Makefile
drivers/base/firmware_loader/fallback_table.c