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:
Jean Delvare 2007-02-13 22:09:03 +01:00 • committed by Jean Delvare
commit 12a917f69d
15 changed files with 19 additions and 3 deletions

View file

@ -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,