Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions drivers/soundwire/intel.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 2 additions & 0 deletions drivers/soundwire/master.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down