Skip to content

Commit

Permalink
i2c: cros-ec-tunnel: Fix slave device enumeration
Browse files Browse the repository at this point in the history
During adding of the adapter the slave device registration
use to fail as the acpi companion field was not populated.

Fixes: 9af1563 ("i2c: cros-ec-tunnel: Make the device acpi compatible")
Signed-off-by: Akshu Agrawal <[email protected]>
Acked-by: Raul E Rangel <[email protected]>
Reviewed-by: Enric Balletbo i Serra <[email protected]>
Signed-off-by: Wolfram Sang <[email protected]>
  • Loading branch information
Akshu Agrawal authored and Wolfram Sang committed Jan 31, 2020
1 parent ea6dd25 commit 8ff2d7c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/i2c/busses/i2c-cros-ec-tunnel.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 8ff2d7c

Please sign in to comment.