From: Alexander Shiyan Date: Sun, 2 Mar 2014 07:44:34 +0000 (+0400) Subject: mfd: mc13xxx: Add missing spi_setup() X-Git-Tag: firefly_0821_release~176^2~4118^2~35 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=6a5926e6975c9bca2ef6ff68cbd1cc17afc0e7d8;p=firefly-linux-kernel-4.4.55.git 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 Signed-off-by: Lee Jones --- 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) 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,