Skip to content

Commit

Permalink
spi: amd: Fix building without ACPI enabled
Browse files Browse the repository at this point in the history
Commit 2090435 ("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: 2090435 ("spi: amd: Add support for version AMDI0062")
Signed-off-by: André Almeida <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
  • Loading branch information
andrealmeid authored and broonie committed Feb 16, 2022
1 parent 47b34f4 commit 2b993ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/spi/spi-amd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
Expand Down

0 comments on commit 2b993ab

Please sign in to comment.