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 --- include/driver.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/driver.h b/include/driver.h index bbe789b51e..cbb040170c 100644 --- a/include/driver.h +++ b/include/driver.h @@ -496,5 +496,6 @@ int devfs_del_partition(const char *name); int dev_get_drvdata(struct device_d *dev, unsigned long *data); -#endif /* DRIVER_H */ +int device_match_of_modalias(struct device_d *dev, struct driver_d *drv); +#endif /* DRIVER_H */ -- cgit v1.2.3