aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/spi/spi.c')
-rw-r--r--drivers/spi/spi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c
index 6f193b02a9e8..f996c600eb8c 100644
--- a/drivers/spi/spi.c
+++ b/drivers/spi/spi.c
@@ -1251,10 +1251,10 @@ int spi_master_resume(struct spi_master *master)
1251} 1251}
1252EXPORT_SYMBOL_GPL(spi_master_resume); 1252EXPORT_SYMBOL_GPL(spi_master_resume);
1253 1253
1254static int __spi_master_match(struct device *dev, void *data) 1254static int __spi_master_match(struct device *dev, const void *data)
1255{ 1255{
1256 struct spi_master *m; 1256 struct spi_master *m;
1257 u16 *bus_num = data; 1257 const u16 *bus_num = data;
1258 1258
1259 m = container_of(dev, struct spi_master, dev); 1259 m = container_of(dev, struct spi_master, dev);
1260 return m->bus_num == *bus_num; 1260 return m->bus_num == *bus_num;