summaryrefslogtreecommitdiffstats
path: root/drivers/i2c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2014-02-07 09:27:59 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2014-02-07 09:28:02 +0100
commit394edf6377ca604402293d74b31694b171923945 (patch)
tree10becc46a2620c580aa4c7a948c9053ac05a20a4 /drivers/i2c
parent4f2f9150b748f278a02c7874e9fc3fd026082581 (diff)
downloadbarebox-394edf6377ca604402293d74b31694b171923945.tar.gz
barebox-394edf6377ca604402293d74b31694b171923945.tar.xz
i2c/spi: match of_modaliases
i2c/spi devices in the devicetree often come with a "vendor,device" comaptible string. These do not match in barebox, so add a device_match_of_modalias function which does exactly that. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/i2c')
-rw-r--r--drivers/i2c/i2c.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/i2c.c b/drivers/i2c/i2c.c
index 3b9f601f68..d774105008 100644
--- a/drivers/i2c/i2c.c
+++ b/drivers/i2c/i2c.c
@@ -467,7 +467,7 @@ static void i2c_remove(struct device_d *dev)
struct bus_type i2c_bus = {
.name = "i2c",
- .match = device_match,
+ .match = device_match_of_modalias,
.probe = i2c_probe,
.remove = i2c_remove,
};