i2c: move OF helpers into the core
I2C of helpers used to live in of_i2c.c but experience (from SPI) shows that it is much cleaner to have this in the core. This also removes a circular dependency between the helpers and the core, and so we can finally register child nodes in the core instead of doing this manually in each driver. So, fix the drivers and documentation, too. Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
This commit is contained in:
parent
c1d15b68aa
commit
687b81d083
47 changed files with 138 additions and 262 deletions
|
@ -238,7 +238,6 @@ An I2C bus (controller) driver does:
|
|||
if (ret)
|
||||
/* handle error */
|
||||
|
||||
of_i2c_register_devices(adapter);
|
||||
/* Enumerate the slave devices behind this bus via ACPI */
|
||||
acpi_i2c_register_devices(adapter);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue