summaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi-fsl-espi.c
diff options
context:
space:
mode:
authorHeiner Kallweit <hkallweit1@gmail.com>2016-11-13 14:36:01 +0100
committerMark Brown <broonie@kernel.org>2016-11-14 11:50:13 +0100
commit689d41fbd40afe3938eccfe3ea890872d86aec5b (patch)
treef8569468adffd41c11b9b3c8691b792d208be935 /drivers/spi/spi-fsl-espi.c
parentspi: fsl-espi: add support for dual output read mode (diff)
downloadlinux-689d41fbd40afe3938eccfe3ea890872d86aec5b.tar.xz
linux-689d41fbd40afe3938eccfe3ea890872d86aec5b.zip
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>
Diffstat (limited to 'drivers/spi/spi-fsl-espi.c')
-rw-r--r--drivers/spi/spi-fsl-espi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/spi/spi-fsl-espi.c b/drivers/spi/spi-fsl-espi.c
index 6624c5a06ffc..a1e1b68b400a 100644
--- a/drivers/spi/spi-fsl-espi.c
+++ b/drivers/spi/spi-fsl-espi.c
@@ -661,7 +661,7 @@ static int fsl_espi_probe(struct device *dev, struct resource *mem,
}
/* 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);
@@ -786,7 +786,7 @@ static int of_fsl_espi_resume(struct device *dev)
CSMODE_INIT_VAL);
/* 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);