summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJavier Martinez Canillas2015-08-20 09:07:26 +0200
committerJonathan Cameron2015-08-22 20:09:02 +0200
commitab6ff6c6ca1b4739b2af07501bc333b85d7381d8 (patch)
treefde041cb9991d708f5d34597337bc4d008bad760
parentiio: Export SPI module alias information in missing drivers (diff)
downloadkernel-qcow2-linux-ab6ff6c6ca1b4739b2af07501bc333b85d7381d8.tar.gz
kernel-qcow2-linux-ab6ff6c6ca1b4739b2af07501bc333b85d7381d8.tar.xz
kernel-qcow2-linux-ab6ff6c6ca1b4739b2af07501bc333b85d7381d8.zip
iio: adc: mcp320x: Set struct spi_driver .of_match_table
The driver has an OF id table but the .of_match_table is not set so the SPI core can't do an OF style match and the table was unused. Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com> Acked-by: Michael Welling <mwelling@ieee.org> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
-rw-r--r--drivers/iio/adc/mcp320x.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/iio/adc/mcp320x.c b/drivers/iio/adc/mcp320x.c
index b19e4f9d16e0..41a21e986c1a 100644
--- a/drivers/iio/adc/mcp320x.c
+++ b/drivers/iio/adc/mcp320x.c
@@ -404,6 +404,7 @@ MODULE_DEVICE_TABLE(spi, mcp320x_id);
static struct spi_driver mcp320x_driver = {
.driver = {
.name = "mcp320x",
+ .of_match_table = of_match_ptr(mcp320x_dt_ids),
.owner = THIS_MODULE,
},
.probe = mcp320x_probe,