Skip to content

Commit 27e932a

Browse files
axiqiarafaeljw
authored andcommitted
ACPI: APEI: rename ghes_init() with an "acpi_" prefix
ghes_init() sticks out in acpi_init() because it is the only functions without an "acpi_" prefix. Rename ghes_init with an "acpi_" prefix, then all looks fine. Signed-off-by: Shuai Xue <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent dc4e8c0 commit 27e932a

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

drivers/acpi/apei/ghes.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1457,7 +1457,7 @@ static struct platform_driver ghes_platform_driver = {
14571457
.remove = ghes_remove,
14581458
};
14591459

1460-
void __init ghes_init(void)
1460+
void __init acpi_ghes_init(void)
14611461
{
14621462
int rc;
14631463

drivers/acpi/bus.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1332,7 +1332,7 @@ static int __init acpi_init(void)
13321332
pci_mmcfg_late_init();
13331333
acpi_iort_init();
13341334
acpi_hest_init();
1335-
ghes_init();
1335+
acpi_ghes_init();
13361336
acpi_scan_init();
13371337
acpi_ec_init();
13381338
acpi_debugfs_init();

include/acpi/apei.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ extern int hest_disable;
2727
extern int erst_disable;
2828
#ifdef CONFIG_ACPI_APEI_GHES
2929
extern bool ghes_disable;
30-
void __init ghes_init(void);
30+
void __init acpi_ghes_init(void);
3131
#else
3232
#define ghes_disable 1
33-
static inline void ghes_init(void) { }
33+
static inline void acpi_ghes_init(void) { }
3434
#endif
3535

3636
#ifdef CONFIG_ACPI_APEI

0 commit comments

Comments
 (0)