aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/base
diff options
context:
space:
mode:
authorMing Lei <ming.lei@canonical.com>2013-06-20 00:30:16 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-06-21 17:09:47 -0400
commit90f8908127b55aa22f5a995880d5ac8cd23fbe1e (patch)
tree1e12ffbbaec974df974314e4034be0f681fc7dbd /drivers/base
parent7068cb07563d8f001e83a2836ccf1cef6518aea4 (diff)
firmware loader: fix compile warning with PM_SLEEP set
This patch fixes the below compile warning: drivers/base/firmware_class.c:1254:12: warning: 'cache_firmware' defined but not used [-Wunused-function] static int cache_firmware(const char *fw_name) ^ drivers/base/firmware_class.c:1281:12: warning: 'uncache_firmware' defined but not used [-Wunused-function] static int uncache_firmware(const char *fw_name) ^ Reported-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Ming Lei <ming.lei@canonical.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/base')
-rw-r--r--drivers/base/firmware_class.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/base/firmware_class.c b/drivers/base/firmware_class.c
index 7fefcb5acfbf..2b91b1151373 100644
--- a/drivers/base/firmware_class.c
+++ b/drivers/base/firmware_class.c
@@ -1247,6 +1247,9 @@ request_firmware_nowait(
1247} 1247}
1248EXPORT_SYMBOL(request_firmware_nowait); 1248EXPORT_SYMBOL(request_firmware_nowait);
1249 1249
1250#ifdef CONFIG_PM_SLEEP
1251static ASYNC_DOMAIN_EXCLUSIVE(fw_cache_domain);
1252
1250/** 1253/**
1251 * cache_firmware - cache one firmware image in kernel memory space 1254 * cache_firmware - cache one firmware image in kernel memory space
1252 * @fw_name: the firmware image name 1255 * @fw_name: the firmware image name
@@ -1307,9 +1310,6 @@ static int uncache_firmware(const char *fw_name)
1307 return -EINVAL; 1310 return -EINVAL;
1308} 1311}
1309 1312
1310#ifdef CONFIG_PM_SLEEP
1311static ASYNC_DOMAIN_EXCLUSIVE(fw_cache_domain);
1312
1313static struct fw_cache_entry *alloc_fw_cache_entry(const char *name) 1313static struct fw_cache_entry *alloc_fw_cache_entry(const char *name)
1314{ 1314{
1315 struct fw_cache_entry *fce; 1315 struct fw_cache_entry *fce;