Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f6afc8b1 authored by Thierry Reding's avatar Thierry Reding Committed by Jean Delvare
Browse files

i2c-i801: Add device tree support



Add support for probing slave devices parsed from the device tree.

Signed-off-by: default avatarThierry Reding <thierry.reding@avionic-design.de>
Acked-by: default avatarWolfram Sang <w.sang@pengutronix.de>
Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
parent 8547a5bc
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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
@@ -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);