Skip to content

Commit 5bf7188

Browse files
Akhil Rwsakernel
authored andcommitted
i2c: tegra: Set ACPI node as primary fwnode
Set ACPI node as the primary fwnode of I2C adapter to allow enumeration of child devices from the ACPI table Signed-off-by: Zubair Waheed <[email protected]> Signed-off-by: Akhil R <[email protected]> Reviewed-by: Thierry Reding <[email protected]> Signed-off-by: Wolfram Sang <[email protected]>
1 parent 3d50b95 commit 5bf7188

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/i2c/busses/i2c-tegra.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1826,6 +1826,7 @@ static int tegra_i2c_probe(struct platform_device *pdev)
18261826
i2c_dev->adapter.class = I2C_CLASS_DEPRECATED;
18271827
i2c_dev->adapter.algo = &tegra_i2c_algo;
18281828
i2c_dev->adapter.nr = pdev->id;
1829+
ACPI_COMPANION_SET(&i2c_dev->adapter.dev, ACPI_COMPANION(&pdev->dev));
18291830

18301831
if (i2c_dev->hw->supports_bus_clear)
18311832
i2c_dev->adapter.bus_recovery_info = &tegra_i2c_recovery_info;

0 commit comments

Comments
 (0)