From: Uwe Kleine-König Date: Thu, 1 Oct 2009 22:44:31 +0000 (-0700) Subject: spi-imx: no need to assert bits_per_word being initialized X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4388eb11351660c7688a4756aa6da99bfb4bc129;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Acked-by: Sascha Hauer Cc: David Brownell Cc: Guennadi Liakhovetski Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/spi/spi_imx.c b/drivers/spi/spi_imx.c index 84dd4f3bd50e..b6a8149220fb 100644 --- a/drivers/spi/spi_imx.c +++ b/drivers/spi/spi_imx.c @@ -481,9 +481,6 @@ static int spi_imx_setup(struct spi_device *spi) struct spi_imx_data *spi_imx = spi_master_get_devdata(spi->master); int gpio = spi_imx->chipselect[spi->chip_select]; - if (!spi->bits_per_word) - spi->bits_per_word = 8; - pr_debug("%s: mode %d, %u bpw, %d hz\n", __func__, spi->mode, spi->bits_per_word, spi->max_speed_hz);