spi: amd: Fix building without ACPI enabled
authorAndré Almeida <andrealmeid@collabora.com>
Wed, 16 Feb 2022 16:27:19 +0000 (13:27 -0300)
committerMark Brown <broonie@kernel.org>
Wed, 16 Feb 2022 16:34:25 +0000 (16:34 +0000)
commit2b993ab79b5dc83eb699e747bfac6c04f4f5fc70
treea3eba63410c02c2efe3915e16da81d101a231bd3
parent47b34f495b8b75475952f12c521c4c1fc2fa09b4
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>
drivers/spi/spi-amd.c