mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-30 22:26:55 +00:00
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>
This commit is contained in:
parent
5df8e5f4f9
commit
ee2bc5d2c4
1 changed files with 3 additions and 8 deletions
|
@ -62,7 +62,6 @@ static int acpi_apd_setup(struct apd_private_data *pdata)
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CONFIG_X86_AMD_PLATFORM_DEVICE
|
#ifdef CONFIG_X86_AMD_PLATFORM_DEVICE
|
||||||
|
|
||||||
static int misc_check_res(struct acpi_resource *ares, void *data)
|
static int misc_check_res(struct acpi_resource *ares, void *data)
|
||||||
{
|
{
|
||||||
struct resource res;
|
struct resource res;
|
||||||
|
@ -133,7 +132,7 @@ static const struct apd_device_desc cz_uart_desc = {
|
||||||
static const struct apd_device_desc fch_misc_desc = {
|
static const struct apd_device_desc fch_misc_desc = {
|
||||||
.setup = fch_misc_setup,
|
.setup = fch_misc_setup,
|
||||||
};
|
};
|
||||||
#endif
|
#endif /* CONFIG_X86_AMD_PLATFORM_DEVICE */
|
||||||
|
|
||||||
#ifdef CONFIG_ARM64
|
#ifdef CONFIG_ARM64
|
||||||
static const struct apd_device_desc xgene_i2c_desc = {
|
static const struct apd_device_desc xgene_i2c_desc = {
|
||||||
|
@ -175,14 +174,10 @@ static const struct apd_device_desc hip08_spi_desc = {
|
||||||
.setup = acpi_apd_setup,
|
.setup = acpi_apd_setup,
|
||||||
.fixed_clk_rate = 250000000,
|
.fixed_clk_rate = 250000000,
|
||||||
};
|
};
|
||||||
|
#endif /* CONFIG_ARM64 */
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#else
|
|
||||||
|
|
||||||
#define APD_ADDR(desc) (0UL)
|
|
||||||
|
|
||||||
#endif /* CONFIG_X86_AMD_PLATFORM_DEVICE */
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create platform device during acpi scan attach handle.
|
* Create platform device during acpi scan attach handle.
|
||||||
* Return value > 0 on success of creating device.
|
* Return value > 0 on success of creating device.
|
||||||
|
|
Loading…
Reference in a new issue