diff options
Diffstat (limited to 'src/drivers/nxp/uwb/uwb.c')
-rw-r--r-- | src/drivers/nxp/uwb/uwb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/drivers/nxp/uwb/uwb.c b/src/drivers/nxp/uwb/uwb.c index 0f5ba47f08..b828657420 100644 --- a/src/drivers/nxp/uwb/uwb.c +++ b/src/drivers/nxp/uwb/uwb.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 && ops->ops_spi_bus->dev_to_bus) |