Skip to content

Commit

Permalink
i2c-i801: Add device tree support
Browse files Browse the repository at this point in the history
Add support for probing slave devices parsed from the device tree.

Signed-off-by: Thierry Reding <[email protected]>
Acked-by: Wolfram Sang <[email protected]>
Signed-off-by: Jean Delvare <[email protected]>
  • Loading branch information
Thierry Reding authored and Jean Delvare committed Dec 16, 2012
1 parent 8547a5b commit f6afc8b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/i2c/busses/i2c-i801.c
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@
#include <linux/slab.h>
#include <linux/wait.h>
#include <linux/err.h>
#include <linux/of_i2c.h>

#if (defined CONFIG_I2C_MUX_GPIO || defined CONFIG_I2C_MUX_GPIO_MODULE) && \
defined CONFIG_DMI
Expand Down Expand Up @@ -1215,6 +1216,7 @@ static int __devinit i801_probe(struct pci_dev *dev,
goto exit_free_irq;
}

of_i2c_register_devices(&priv->adapter);
i801_probe_optional_slaves(priv);
/* We ignore errors - multiplexing is optional */
i801_add_mux(priv);
Expand Down

0 comments on commit f6afc8b

Please sign in to comment.