Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 211246
b: refs/heads/master
c: 2b7a32f
h: refs/heads/master
v: v3
  • Loading branch information
Sinan Akman authored and Grant Likely committed Oct 3, 2010
1 parent cf53be4 commit c809607
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 23699f98f84f20195fddd0263d05a8ccb8694676
refs/heads/master: 2b7a32f7ecb24d01bd0b2d5097d7c7ebe7082ba7
5 changes: 5 additions & 0 deletions trunk/drivers/spi/spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#include <linux/init.h>
#include <linux/cache.h>
#include <linux/mutex.h>
#include <linux/of_device.h>
#include <linux/slab.h>
#include <linux/mod_devicetable.h>
#include <linux/spi/spi.h>
Expand Down Expand Up @@ -86,6 +87,10 @@ static int spi_match_device(struct device *dev, struct device_driver *drv)
const struct spi_device *spi = to_spi_device(dev);
const struct spi_driver *sdrv = to_spi_driver(drv);

/* Attempt an OF style match */
if (of_driver_match_device(dev, drv))
return 1;

if (sdrv->id_table)
return !!spi_match_id(sdrv->id_table, spi);

Expand Down

0 comments on commit c809607

Please sign in to comment.