From 394edf6377ca604402293d74b31694b171923945 Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Fri, 7 Feb 2014 09:27:59 +0100 Subject: 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 --- drivers/i2c/i2c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers/i2c') 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, }; -- cgit v1.2.3