Skip to content

Commit ee2bc5d

Browse files
guohanjunrafaeljw
authored andcommitted
ACPI: APD: Remove unnecessary APD_ADDR() macro stub
Since APD_ADDR(desc) is only used when CONFIG_X86_AMD_PLATFORM_DEVICE or CONFIG_ARM64 is set, no need for the stub APD_ADDR(desc) definition covering the other cases, so remove it. Also update the comments for #endif. Signed-off-by: Hanjun Guo <guohanjun@huawei.com> [ rjw: Subject and changelog edits ] Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent 5df8e5f commit ee2bc5d

1 file changed

Lines changed: 3 additions & 8 deletions

File tree

drivers/acpi/acpi_apd.c

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ static int acpi_apd_setup(struct apd_private_data *pdata)
6262
}
6363

6464
#ifdef CONFIG_X86_AMD_PLATFORM_DEVICE
65-
6665
static int misc_check_res(struct acpi_resource *ares, void *data)
6766
{
6867
struct resource res;
@@ -133,7 +132,7 @@ static const struct apd_device_desc cz_uart_desc = {
133132
static const struct apd_device_desc fch_misc_desc = {
134133
.setup = fch_misc_setup,
135134
};
136-
#endif
135+
#endif /* CONFIG_X86_AMD_PLATFORM_DEVICE */
137136

138137
#ifdef CONFIG_ARM64
139138
static const struct apd_device_desc xgene_i2c_desc = {
@@ -175,13 +174,9 @@ static const struct apd_device_desc hip08_spi_desc = {
175174
.setup = acpi_apd_setup,
176175
.fixed_clk_rate = 250000000,
177176
};
178-
#endif
177+
#endif /* CONFIG_ARM64 */
179178

180-
#else
181-
182-
#define APD_ADDR(desc) (0UL)
183-
184-
#endif /* CONFIG_X86_AMD_PLATFORM_DEVICE */
179+
#endif
185180

186181
/**
187182
* Create platform device during acpi scan attach handle.

0 commit comments

Comments
 (0)