Commit 8ff2d7ca authored by Akshu Agrawal's avatar Akshu Agrawal Committed by Wolfram Sang

i2c: cros-ec-tunnel: Fix slave device enumeration

During adding of the adapter the slave device registration
use to fail as the acpi companion field was not populated.

Fixes: 9af1563a ("i2c: cros-ec-tunnel: Make the device acpi compatible")
Signed-off-by: default avatarAkshu Agrawal <akshu.agrawal@amd.com>
Acked-by: default avatarRaul E Rangel <rrangel@chromium.org>
Reviewed-by: default avatarEnric Balletbo i Serra <enric.balletbo@collabora.com>
Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
parent ea6dd25d
......@@ -273,6 +273,7 @@ static int ec_i2c_probe(struct platform_device *pdev)
bus->adap.dev.parent = &pdev->dev;
bus->adap.dev.of_node = pdev->dev.of_node;
bus->adap.retries = I2C_MAX_RETRIES;
ACPI_COMPANION_SET(&bus->adap.dev, ACPI_COMPANION(&pdev->dev));
err = i2c_add_adapter(&bus->adap);
if (err)
......
Markdown is supported
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