firmware_class: Tie exporting caching routines with CONFIG_CACHE_FW

ARCH=um kernels seems to be stricter about this than ARCH=arm64 kernels,
export cache_firmware & uncache_firmware routines only when
CONFIG_CACHE_FW is enabled.

Bug: 38289596
Change-Id: Ib3bd9b0ede9b6f1a08b5e0e51d117cc43153795f
Signed-off-by: Ajay Dudani <adudani@google.com>
This commit is contained in:
Ajay Dudani 2017-09-07 19:36:08 -07:00 committed by syphyr
parent 7f3ad4062f
commit 5c8a134e27
1 changed files with 2 additions and 0 deletions

View File

@ -1872,5 +1872,7 @@ module_exit(firmware_class_exit);
EXPORT_SYMBOL(release_firmware);
EXPORT_SYMBOL(request_firmware);
EXPORT_SYMBOL(request_firmware_nowait);
#ifdef CONFIG_FW_CACHE
EXPORT_SYMBOL_GPL(cache_firmware);
EXPORT_SYMBOL_GPL(uncache_firmware);
#endif