Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Alexander Shiyan and committed by
Lee Jones
6a5926e6 0cfe5c90

+3
+3
drivers/mfd/mc13xxx-spi.c
··· 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,