projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
sched/deadline: Do not try to push tasks if pinned task switches to dl
[cascardo/linux.git]
/
drivers
/
mfd
/
mc13xxx-spi.c
diff --git
a/drivers/mfd/mc13xxx-spi.c
b/drivers/mfd/mc13xxx-spi.c
index
38ab678
..
702925e
100644
(file)
--- a/
drivers/mfd/mc13xxx-spi.c
+++ b/
drivers/mfd/mc13xxx-spi.c
@@
-140,6
+140,11
@@
static int mc13xxx_spi_probe(struct spi_device *spi)
mc13xxx->irq = spi->irq;
+ spi->max_speed_hz = spi->max_speed_hz ? : 26000000;
+ ret = spi_setup(spi);
+ if (ret)
+ return ret;
+
mc13xxx->regmap = devm_regmap_init(&spi->dev, ®map_mc13xxx_bus,
&spi->dev,
&mc13xxx_regmap_spi_config);