Commit 6a5926e6975c9bca2ef6ff68cbd1cc17afc0e7d8

Authored by Alexander Shiyan
Committed by Lee Jones
1 parent 0cfe5c90c4

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>

Showing 1 changed file with 3 additions and 0 deletions Side-by-side Diff

drivers/mfd/mc13xxx-spi.c
... ... @@ -141,6 +141,9 @@
141 141 mc13xxx->irq = spi->irq;
142 142  
143 143 spi->max_speed_hz = spi->max_speed_hz ? : 26000000;
  144 + ret = spi_setup(spi);
  145 + if (ret)
  146 + return ret;
144 147  
145 148 mc13xxx->regmap = devm_regmap_init(&spi->dev, &regmap_mc13xxx_bus,
146 149 &spi->dev,