mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
i2c: synquacer: fix enumeration of slave devices
commit95e0cf3caeupstream. The I2C host driver for SynQuacer fails to populate the of_node and ACPI companion fields of the struct i2c_adapter it instantiates, resulting in enumeration of the subordinate I2C bus to fail. Fixes:0d676a6c43("i2c: add support for Socionext SynQuacer I2C controller") Cc: <stable@vger.kernel.org> # v4.19+ Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Signed-off-by: Wolfram Sang <wsa@the-dreams.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
ec30811209
commit
d1493c5cbb
@@ -602,6 +602,8 @@ static int synquacer_i2c_probe(struct platform_device *pdev)
|
||||
i2c->adapter = synquacer_i2c_ops;
|
||||
i2c_set_adapdata(&i2c->adapter, i2c);
|
||||
i2c->adapter.dev.parent = &pdev->dev;
|
||||
i2c->adapter.dev.of_node = pdev->dev.of_node;
|
||||
ACPI_COMPANION_SET(&i2c->adapter.dev, ACPI_COMPANION(&pdev->dev));
|
||||
i2c->adapter.nr = pdev->id;
|
||||
init_completion(&i2c->completion);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user