mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-05 06:08:22 +00:00
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>
This commit is contained in:
parent
0cfe5c90c4
commit
6a5926e697
1 changed files with 3 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue