drivers/intel/dtbt: Fix build after rebase

Change-Id: I1357f3216dd6a14c3909241ae5bd2b39f271672e
Ref: bfb11bec3b ("include/device/device.h: Remove CHIP_NAME() macro")
Ref: 7fcd4d58ec ("device/device.h: Rename busses for clarity")
Signed-off-by: Tim Crawford <tcrawford@system76.com>
This commit is contained in:
Tim Crawford
2024-02-21 09:50:50 -07:00
parent 4a2741633b
commit 38c3eda699

View File

@@ -64,11 +64,10 @@ static void dtbt_fill_ssdt(const struct device *dev)
} }
printk(BIOS_DEBUG, " Dev %s\n", dev_path(dev)); printk(BIOS_DEBUG, " Dev %s\n", dev_path(dev));
struct bus *bus = dev->bus; struct bus *bus = dev->upstream;
if (!bus) { if (!bus) {
printk(BIOS_ERR, "DTBT bus invalid\n"); printk(BIOS_ERR, "DTBT bus invalid\n");
} }
printk(BIOS_DEBUG, " Bus %s\n", bus_path(bus));
struct device *parent = bus->dev; struct device *parent = bus->dev;
if (!parent || parent->path.type != DEVICE_PATH_PCI) { if (!parent || parent->path.type != DEVICE_PATH_PCI) {
@@ -210,6 +209,6 @@ static void dtbt_enable(struct device *dev)
} }
struct chip_operations drivers_intel_dtbt_ops = { struct chip_operations drivers_intel_dtbt_ops = {
CHIP_NAME("Intel Discrete Thunderbolt Device") .name = "Intel Discrete Thunderbolt Device",
.enable_dev = dtbt_enable .enable_dev = dtbt_enable
}; };