i2c: synquacer: fix enumeration of slave devices
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Tue, 30 Apr 2019 09:47:34 +0000 (11:47 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 May 2019 05:21:42 +0000 (07:21 +0200)
commitd1493c5cbbada3da308352ce9520bc976fa9ced6
treed8ef3ce17a08eff5d310e8e79c347f50339df87b
parentec30811209e4753b303a827553c457e36f6147a4
i2c: synquacer: fix enumeration of slave devices

commit 95e0cf3caeb11e1b0398c747b5cfa12828263824 upstream.

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: 0d676a6c4390 ("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>
drivers/i2c/busses/i2c-synquacer.c