diff --git a/drivers/soundwire/intel.c b/drivers/soundwire/intel.c index b664cae9be260f..6355dbea2faab4 100644 --- a/drivers/soundwire/intel.c +++ b/drivers/soundwire/intel.c @@ -1341,6 +1341,9 @@ static int intel_master_probe(struct platform_device *pdev) if (!sdw) return -ENOMEM; + /* FIXME: is this needed for platform devices? */ + ACPI_COMPANION_SET(dev, ACPI_COMPANION(dev->parent)); + cdns = &sdw->cdns; bus = &cdns->bus; diff --git a/drivers/soundwire/master.c b/drivers/soundwire/master.c index 9b05c9e25ebe48..3726ac8cd76c4a 100644 --- a/drivers/soundwire/master.c +++ b/drivers/soundwire/master.c @@ -143,6 +143,8 @@ int sdw_master_device_add(struct sdw_bus *bus, struct device *parent, md->dev.groups = master_node_groups; md->dev.of_node = parent->of_node; md->dev.fwnode = fwnode; + /* make sure ACPI companion is set based on parent */ + ACPI_COMPANION_SET(&md->dev, ACPI_COMPANION(parent)); md->dev.dma_mask = parent->dma_mask; dev_set_name(&md->dev, "sdw-master-%d", bus->id);