OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
74750e0
)
spi: dw-mmio: Do not add acpi modalias when CONFIG_ACPI is not enabled
author
Jay Fang
<f.fangjian@huawei.com>
Sat, 9 May 2020 02:29:51 +0000
(10:29 +0800)
committer
Mark Brown
<broonie@kernel.org>
Mon, 11 May 2020 17:17:54 +0000
(18:17 +0100)
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>
drivers/spi/spi-dw-mmio.c
patch
|
blob
|
history
diff --git
a/drivers/spi/spi-dw-mmio.c
b/drivers/spi/spi-dw-mmio.c
index
fc3577b
..
c34fba2
100644
(file)
--- 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,