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

Configure Feed

Select the types of activity you want to include in your feed.

spi-imx: no need to assert bits_per_word being initialized

spi_imx_setup() is only called by spi_setup(). The latter does the
initialization already.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Acked-by: Sascha Hauer <s.hauer@pengutronix.de>
Cc: David Brownell <dbrownell@users.sourceforge.net>
Cc: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Uwe Kleine-König and committed by
Linus Torvalds
4388eb11 3910f2cf

-3
-3
drivers/spi/spi_imx.c
··· 481 481 struct spi_imx_data *spi_imx = spi_master_get_devdata(spi->master); 482 482 int gpio = spi_imx->chipselect[spi->chip_select]; 483 483 484 - if (!spi->bits_per_word) 485 - spi->bits_per_word = 8; 486 - 487 484 pr_debug("%s: mode %d, %u bpw, %d hz\n", __func__, 488 485 spi->mode, spi->bits_per_word, spi->max_speed_hz); 489 486