提交 93232e46 编写于 作者: M Ming Lei 提交者: Greg Kroah-Hartman

firmware loader: don't export cache_firmware and uncache_firmware

Looks no driver has the explict requirement for the two exported
API, just don't export them anymore.
Signed-off-by: NMing Lei <ming.lei@canonical.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 96b2c0fc
...@@ -1244,7 +1244,7 @@ EXPORT_SYMBOL(request_firmware_nowait); ...@@ -1244,7 +1244,7 @@ EXPORT_SYMBOL(request_firmware_nowait);
* Return !0 otherwise * Return !0 otherwise
* *
*/ */
int cache_firmware(const char *fw_name) static int cache_firmware(const char *fw_name)
{ {
int ret; int ret;
const struct firmware *fw; const struct firmware *fw;
...@@ -1259,7 +1259,6 @@ int cache_firmware(const char *fw_name) ...@@ -1259,7 +1259,6 @@ int cache_firmware(const char *fw_name)
return ret; return ret;
} }
EXPORT_SYMBOL_GPL(cache_firmware);
/** /**
* uncache_firmware - remove one cached firmware image * uncache_firmware - remove one cached firmware image
...@@ -1272,7 +1271,7 @@ EXPORT_SYMBOL_GPL(cache_firmware); ...@@ -1272,7 +1271,7 @@ EXPORT_SYMBOL_GPL(cache_firmware);
* Return !0 otherwise * Return !0 otherwise
* *
*/ */
int uncache_firmware(const char *fw_name) static int uncache_firmware(const char *fw_name)
{ {
struct firmware_buf *buf; struct firmware_buf *buf;
struct firmware fw; struct firmware fw;
...@@ -1290,7 +1289,6 @@ int uncache_firmware(const char *fw_name) ...@@ -1290,7 +1289,6 @@ int uncache_firmware(const char *fw_name)
return -EINVAL; return -EINVAL;
} }
EXPORT_SYMBOL_GPL(uncache_firmware);
#ifdef CONFIG_PM_SLEEP #ifdef CONFIG_PM_SLEEP
static ASYNC_DOMAIN_EXCLUSIVE(fw_cache_domain); static ASYNC_DOMAIN_EXCLUSIVE(fw_cache_domain);
......
...@@ -47,8 +47,6 @@ int request_firmware_nowait( ...@@ -47,8 +47,6 @@ int request_firmware_nowait(
void (*cont)(const struct firmware *fw, void *context)); void (*cont)(const struct firmware *fw, void *context));
void release_firmware(const struct firmware *fw); void release_firmware(const struct firmware *fw);
int cache_firmware(const char *name);
int uncache_firmware(const char *name);
#else #else
static inline int request_firmware(const struct firmware **fw, static inline int request_firmware(const struct firmware **fw,
const char *name, const char *name,
...@@ -68,15 +66,6 @@ static inline void release_firmware(const struct firmware *fw) ...@@ -68,15 +66,6 @@ static inline void release_firmware(const struct firmware *fw)
{ {
} }
static inline int cache_firmware(const char *name)
{
return -ENOENT;
}
static inline int uncache_firmware(const char *name)
{
return -EINVAL;
}
#endif #endif
#endif #endif
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册