]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita93efadba4cee13afdd3a57a492bd8ff302aa129
treea3eba63410c02c2efe3915e16da81d101a231bd3
parent3b1a4c05ffe8ee3794c5326cd9d4f066cfb92049
spi: amd: Fix building without ACPI enabled

Commit 7c03c4fbcfbc ("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: 7c03c4fbcfbc ("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