diff options
Diffstat (limited to 'src/drivers/spi/acpi/acpi.c')
-rw-r--r-- | src/drivers/spi/acpi/acpi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/drivers/spi/acpi/acpi.c b/src/drivers/spi/acpi/acpi.c index b58bc2daa8..537c377f7c 100644 --- a/src/drivers/spi/acpi/acpi.c +++ b/src/drivers/spi/acpi/acpi.c @@ -15,10 +15,10 @@ static int spi_acpi_get_bus(const struct device *dev) struct device *spi_dev; struct device_operations *ops; - if (!dev->bus || !dev->bus->dev) + if (!dev->upstream || !dev->upstream->dev) return -1; - spi_dev = dev->bus->dev; + spi_dev = dev->upstream->dev; ops = spi_dev->ops; if (ops && ops->ops_spi_bus && |