Skip to content

Commit 4ac4364

Browse files
committed
spi: fix acpi_spi_count_resources use (e.g. HDA driver) for !CONFIG_ACPI
JIRA: https://issues.redhat.com/browse/RHEL-60915 Upstream status: RHEL-only Signed-off-by: Jaroslav Kysela <jkysela@redhat.com>
1 parent 6a0a5c5 commit 4ac4364

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

include/linux/spi/spi.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -865,6 +865,8 @@ extern struct spi_device *acpi_spi_device_alloc(struct spi_controller *ctlr,
865865
struct acpi_device *adev,
866866
int index);
867867
int acpi_spi_count_resources(struct acpi_device *adev);
868+
#else
869+
static inline int acpi_spi_count_resources(struct acpi_device *adev) { return 0; }
868870
#endif
869871

870872
/*

0 commit comments

Comments
 (0)