diff options
author | Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> | 2020-06-01 02:21:01 +0800 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2020-06-22 17:21:36 +0530 |
commit | 4ab34412fc62fba29ba00d76cf2c46585b3e5ba3 (patch) | |
tree | 78d391b5c71b2be928f84f291079f54a8c919d42 | |
parent | dd906cc615a5c0f7b95c20200963958c1cc0ea74 (diff) | |
download | linux-4ab34412fc62fba29ba00d76cf2c46585b3e5ba3.tar.bz2 |
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>
-rw-r--r-- | drivers/soundwire/intel_init.c | 2 |
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)) { |