Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

André Almeida and committed by
Mark Brown
2b993ab7 47b34f49

+1 -1
+1 -1
drivers/spi/spi-amd.c
··· 330 330 static struct platform_driver amd_spi_driver = { 331 331 .driver = { 332 332 .name = "amd_spi", 333 - .acpi_match_table = spi_acpi_match, 333 + .acpi_match_table = ACPI_PTR(spi_acpi_match), 334 334 }, 335 335 .probe = amd_spi_probe, 336 336 };