Skip to content
Snippets Groups Projects
Commit 83345d51 authored by Tin Huynh's avatar Tin Huynh Committed by Wolfram Sang
Browse files

i2c: xgene: Set ACPI_COMPANION_I2C


With ACPI, i2c-core requires ACPI companion to be set in order for it
to create slave device.
This patch sets the ACPI companion accordingly.

Signed-off-by: default avatarTin Huynh <tnhuynh@apm.com>
Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
parent 88ad60c2
No related branches found
No related tags found
No related merge requests found
......@@ -416,6 +416,7 @@ static int xgene_slimpro_i2c_probe(struct platform_device *pdev)
adapter->class = I2C_CLASS_HWMON;
adapter->dev.parent = &pdev->dev;
adapter->dev.of_node = pdev->dev.of_node;
ACPI_COMPANION_SET(&adapter->dev, ACPI_COMPANION(&pdev->dev));
i2c_set_adapdata(adapter, ctx);
rc = i2c_add_adapter(adapter);
if (rc) {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment