aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mfd/mc13xxx-spi.c
diff options
context:
space:
mode:
authorAlexander Shiyan <shc_work@mail.ru>2014-03-02 02:44:34 -0500
committerLee Jones <lee.jones@linaro.org>2014-03-19 04:58:35 -0400
commit6a5926e6975c9bca2ef6ff68cbd1cc17afc0e7d8 (patch)
tree91ca4796d704f7a4641dfef45e322468926a14ac /drivers/mfd/mc13xxx-spi.c
parent0cfe5c90c45c53f9d28d166d2b13bb54852742ba (diff)
mfd: mc13xxx: Add missing spi_setup()
The probe routine should call spi_setup() to configure the SPI bus so it can properly communicate with the device. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/mfd/mc13xxx-spi.c')
-rw-r--r--drivers/mfd/mc13xxx-spi.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/mfd/mc13xxx-spi.c b/drivers/mfd/mc13xxx-spi.c
index ee81a67207de..702925e242c9 100644
--- a/drivers/mfd/mc13xxx-spi.c
+++ b/drivers/mfd/mc13xxx-spi.c
@@ -141,6 +141,9 @@ static int mc13xxx_spi_probe(struct spi_device *spi)
141 mc13xxx->irq = spi->irq; 141 mc13xxx->irq = spi->irq;
142 142
143 spi->max_speed_hz = spi->max_speed_hz ? : 26000000; 143 spi->max_speed_hz = spi->max_speed_hz ? : 26000000;
144 ret = spi_setup(spi);
145 if (ret)
146 return ret;
144 147
145 mc13xxx->regmap = devm_regmap_init(&spi->dev, &regmap_mc13xxx_bus, 148 mc13xxx->regmap = devm_regmap_init(&spi->dev, &regmap_mc13xxx_bus,
146 &spi->dev, 149 &spi->dev,