summaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi.c
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/spi/spi.c
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/spi/spi.c')
-rw-r--r--drivers/spi/spi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c
index ad65884fda..8bddd98cf0 100644
--- a/drivers/spi/spi.c
+++ b/drivers/spi/spi.c
@@ -316,7 +316,7 @@ static void spi_remove(struct device_d *dev)
struct bus_type spi_bus = {
.name = "spi",
- .match = device_match,
+ .match = device_match_of_modalias,
.probe = spi_probe,
.remove = spi_remove,
};