mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-31 12:10:52 -04:00
i2c: Declare more i2c_adapter parent devices
Declare the parent device of i2c_adapter devices each time we can easily do so. It makes the i2c_adapter appear at the right place in the device tree, rather than as a platform device. Signed-off-by: Jean Delvare <[email protected]> Cc: David Brownell <[email protected]> Cc: Len Brown <[email protected]> Cc: Jordan Crouse <[email protected]> Cc: Jody McIntyre <[email protected]> Cc: Stefan Richter <[email protected]> Cc: [email protected] Cc: Petr Vandrovec <[email protected]>
This commit is contained in:
parent
beb58aa39e
commit
12a917f69d
15 changed files with 19 additions and 3 deletions
|
|
@ -340,6 +340,7 @@ static int acpi_ec_hc_add(struct acpi_device *device)
|
|||
smbus->adapter.owner = THIS_MODULE;
|
||||
smbus->adapter.algo = &acpi_ec_smbus_algorithm;
|
||||
smbus->adapter.algo_data = smbus;
|
||||
smbus->adapter.dev.parent = &device->dev;
|
||||
|
||||
if (i2c_add_adapter(&smbus->adapter)) {
|
||||
ACPI_DEBUG_PRINT((ACPI_DB_WARN,
|
||||
|
|
|
|||
Loading…
Reference in a new issue