diff options
author | André Almeida <andrealmeid@collabora.com> | 2022-02-16 17:27:19 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2022-02-16 17:34:25 +0100 |
commit | 2b993ab79b5dc83eb699e747bfac6c04f4f5fc70 (patch) | |
tree | a3eba63410c02c2efe3915e16da81d101a231bd3 /drivers/spi/spi-amd.c | |
parent | spi: intel-pci: Add support for Intel Ice Lake-N SPI serial flash (diff) | |
download | linux-2b993ab79b5dc83eb699e747bfac6c04f4f5fc70.tar.xz linux-2b993ab79b5dc83eb699e747bfac6c04f4f5fc70.zip |
spi: amd: Fix building without ACPI enabled
Commit 209043554915 ("spi: amd: Add support for version AMDI0062")
removed the cast ACPI_PTR() for no good reason. This wrapper is
important to make sure that the driver can be compiled with or without
CONFIG_ACPI enabled, useful for compiling test. Give back the cast so
compilation works again.
Fixes: 209043554915 ("spi: amd: Add support for version AMDI0062")
Signed-off-by: André Almeida <andrealmeid@collabora.com>
Link: https://lore.kernel.org/r/20220216162719.116062-1-andrealmeid@collabora.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to '')
-rw-r--r-- | drivers/spi/spi-amd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi-amd.c b/drivers/spi/spi-amd.c index d909afac6e21..cba6a4486c24 100644 --- a/drivers/spi/spi-amd.c +++ b/drivers/spi/spi-amd.c @@ -330,7 +330,7 @@ MODULE_DEVICE_TABLE(acpi, spi_acpi_match); static struct platform_driver amd_spi_driver = { .driver = { .name = "amd_spi", - .acpi_match_table = spi_acpi_match, + .acpi_match_table = ACPI_PTR(spi_acpi_match), }, .probe = amd_spi_probe, }; |