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

spi: mpc512x-psc: Fix compile errors

My patch created compilation bugs in the MPC512x-PSC driver.
Fix them up.

Cc: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Cc: Anatolij Gustschin <agust@denx.de>
Cc: linuxppc-dev@lists.ozlabs.org
Reported-by: kernel test robot <lkp@intel.com>
Fixes: 2818824ced4b (" spi: mpc512x-psc: Convert to use GPIO descriptors")
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20220201234535.569973-1-linus.walleij@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Linus Walleij and committed by
Mark Brown
8d37f271 7030c428

+1 -2
+1 -2
drivers/spi/spi-mpc512x-psc.c
··· 127 127 out_be32(psc_addr(mps, ccr), ccr); 128 128 mps->bits_per_word = cs->bits_per_word; 129 129 130 - if (cs->gpiod) { 130 + if (spi->cs_gpiod) { 131 131 if (mps->cs_control) 132 132 /* boardfile override */ 133 133 mps->cs_control(spi, (spi->mode & SPI_CS_HIGH) ? 1 : 0); ··· 373 373 static int mpc512x_psc_spi_setup(struct spi_device *spi) 374 374 { 375 375 struct mpc512x_psc_spi_cs *cs = spi->controller_state; 376 - int ret; 377 376 378 377 if (spi->bits_per_word % 8) 379 378 return -EINVAL;