Skip to content

Commit f494513

Browse files
zonquegregkh
authored andcommitted
firmware: move EXPORT_SYMBOL annotations
Move EXPORT_SYMBOL annotations so they follow immediately after the closing function brace line. Signed-off-by: Daniel Mack <[email protected]> Acked-by: Takashi Iwai <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent fe30414 commit f494513

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

drivers/base/firmware_class.c

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1107,6 +1107,7 @@ request_firmware(const struct firmware **firmware_p, const char *name,
11071107
{
11081108
return _request_firmware(firmware_p, name, device, true, false);
11091109
}
1110+
EXPORT_SYMBOL(request_firmware);
11101111

11111112
/**
11121113
* release_firmware: - release the resource associated with a firmware image
@@ -1120,6 +1121,7 @@ void release_firmware(const struct firmware *fw)
11201121
kfree(fw);
11211122
}
11221123
}
1124+
EXPORT_SYMBOL(release_firmware);
11231125

11241126
/* Async support */
11251127
struct firmware_work {
@@ -1200,6 +1202,7 @@ request_firmware_nowait(
12001202
schedule_work(&fw_work->work);
12011203
return 0;
12021204
}
1205+
EXPORT_SYMBOL(request_firmware_nowait);
12031206

12041207
/**
12051208
* cache_firmware - cache one firmware image in kernel memory space
@@ -1230,6 +1233,7 @@ int cache_firmware(const char *fw_name)
12301233

12311234
return ret;
12321235
}
1236+
EXPORT_SYMBOL_GPL(cache_firmware);
12331237

12341238
/**
12351239
* uncache_firmware - remove one cached firmware image
@@ -1260,6 +1264,7 @@ int uncache_firmware(const char *fw_name)
12601264

12611265
return -EINVAL;
12621266
}
1267+
EXPORT_SYMBOL_GPL(uncache_firmware);
12631268

12641269
#ifdef CONFIG_PM_SLEEP
12651270
static ASYNC_DOMAIN_EXCLUSIVE(fw_cache_domain);
@@ -1566,9 +1571,3 @@ static void __exit firmware_class_exit(void)
15661571

15671572
fs_initcall(firmware_class_init);
15681573
module_exit(firmware_class_exit);
1569-
1570-
EXPORT_SYMBOL(release_firmware);
1571-
EXPORT_SYMBOL(request_firmware);
1572-
EXPORT_SYMBOL(request_firmware_nowait);
1573-
EXPORT_SYMBOL_GPL(cache_firmware);
1574-
EXPORT_SYMBOL_GPL(uncache_firmware);

0 commit comments

Comments
 (0)