summaryrefslogtreecommitdiff
path: root/drivers/spi/spi-dw-mmio.c
diff options
context:
space:
mode:
authorJay Fang <f.fangjian@huawei.com>2020-05-09 10:29:51 +0800
committerMark Brown <broonie@kernel.org>2020-05-11 18:17:54 +0100
commit4dd227a55a9f88618b227eda407d58826bbf4df1 (patch)
tree586cba2e877a29843199eea2876037a104b38947 /drivers/spi/spi-dw-mmio.c
parent74750e0621cdcee53a7be72142a080bf40ed90c8 (diff)
downloadlwn-4dd227a55a9f88618b227eda407d58826bbf4df1.tar.gz
lwn-4dd227a55a9f88618b227eda407d58826bbf4df1.zip
spi: dw-mmio: Do not add acpi modalias when CONFIG_ACPI is not enabled
Reduce unnecessary static memory allocation when CONFIG_ACPI is not enabled. Signed-off-by: Jay Fang <f.fangjian@huawei.com> Link: https://lore.kernel.org/r/1588991392-24219-1-git-send-email-f.fangjian@huawei.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-dw-mmio.c')
-rw-r--r--drivers/spi/spi-dw-mmio.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/spi/spi-dw-mmio.c b/drivers/spi/spi-dw-mmio.c
index fc3577b07a1e..c34fba2c0346 100644
--- a/drivers/spi/spi-dw-mmio.c
+++ b/drivers/spi/spi-dw-mmio.c
@@ -283,11 +283,13 @@ static const struct of_device_id dw_spi_mmio_of_match[] = {
};
MODULE_DEVICE_TABLE(of, dw_spi_mmio_of_match);
+#ifdef CONFIG_ACPI
static const struct acpi_device_id dw_spi_mmio_acpi_match[] = {
{"HISI0173", (kernel_ulong_t)dw_spi_dw_apb_init},
{},
};
MODULE_DEVICE_TABLE(acpi, dw_spi_mmio_acpi_match);
+#endif
static struct platform_driver dw_spi_mmio_driver = {
.probe = dw_spi_mmio_probe,