spi: fsl-espi: remove usage of pdata->initial_spmode
Remove pdata->initial_spmode as it is nowhere set. Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com> Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
8263cb33c8
commit
689d41fbd4
@ -661,7 +661,7 @@ static int fsl_espi_probe(struct device *dev, struct resource *mem,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Enable SPI interface */
|
/* Enable SPI interface */
|
||||||
regval = pdata->initial_spmode | SPMODE_INIT_VAL | SPMODE_ENABLE;
|
regval = SPMODE_INIT_VAL | SPMODE_ENABLE;
|
||||||
|
|
||||||
fsl_espi_write_reg(mpc8xxx_spi, ESPI_SPMODE, regval);
|
fsl_espi_write_reg(mpc8xxx_spi, ESPI_SPMODE, regval);
|
||||||
|
|
||||||
@ -786,7 +786,7 @@ static int of_fsl_espi_resume(struct device *dev)
|
|||||||
CSMODE_INIT_VAL);
|
CSMODE_INIT_VAL);
|
||||||
|
|
||||||
/* Enable SPI interface */
|
/* Enable SPI interface */
|
||||||
regval = pdata->initial_spmode | SPMODE_INIT_VAL | SPMODE_ENABLE;
|
regval = SPMODE_INIT_VAL | SPMODE_ENABLE;
|
||||||
|
|
||||||
fsl_espi_write_reg(mpc8xxx_spi, ESPI_SPMODE, regval);
|
fsl_espi_write_reg(mpc8xxx_spi, ESPI_SPMODE, regval);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user