summaryrefslogtreecommitdiff
path: root/drivers/soundwire/intel_init.c
diff options
context:
space:
mode:
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>2020-05-31 21:21:01 +0300
committerVinod Koul <vkoul@kernel.org>2020-06-22 14:51:36 +0300
commit4ab34412fc62fba29ba00d76cf2c46585b3e5ba3 (patch)
tree78d391b5c71b2be928f84f291079f54a8c919d42 /drivers/soundwire/intel_init.c
parentdd906cc615a5c0f7b95c20200963958c1cc0ea74 (diff)
downloadlinux-4ab34412fc62fba29ba00d76cf2c46585b3e5ba3.tar.xz
soundwire: intel_init: pass link information as platform data
It's not clear how this code ever worked, the link information is used in intel.c but never passed as platform_data. Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com> Link: https://lore.kernel.org/r/20200531182102.27840-6-yung-chuan.liao@linux.intel.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/soundwire/intel_init.c')
-rw-r--r--drivers/soundwire/intel_init.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/soundwire/intel_init.c b/drivers/soundwire/intel_init.c
index 57eac5fd4840..65e3a24ea0ac 100644
--- a/drivers/soundwire/intel_init.c
+++ b/drivers/soundwire/intel_init.c
@@ -128,6 +128,8 @@ static struct sdw_intel_ctx
pdevinfo.name = "int-sdw";
pdevinfo.id = i;
pdevinfo.fwnode = acpi_fwnode_handle(adev);
+ pdevinfo.data = link;
+ pdevinfo.size_data = sizeof(*link);
pdev = platform_device_register_full(&pdevinfo);
if (IS_ERR(pdev)) {