From: Thierry Reding Date: Mon, 5 Nov 2012 22:54:40 +0000 (+1100) Subject: i2c-i801: Add device tree support X-Git-Tag: next-20121106~81^2~3 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=275db4c7a526f87bf4e157ee19189be952c09464;p=karo-tx-linux.git i2c-i801: Add device tree support Add support for probing slave devices parsed from the device tree. Signed-off-by: Thierry Reding Acked-by: Wolfram Sang Signed-off-by: Jean Delvare --- diff --git a/drivers/i2c/busses/i2c-i801.c b/drivers/i2c/busses/i2c-i801.c index 6abc00d59881..e80eafc48e78 100644 --- a/drivers/i2c/busses/i2c-i801.c +++ b/drivers/i2c/busses/i2c-i801.c @@ -81,6 +81,7 @@ #include #include #include +#include #if (defined CONFIG_I2C_MUX_GPIO || defined CONFIG_I2C_MUX_GPIO_MODULE) && \ defined CONFIG_DMI @@ -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);