]> git.karo-electronics.de Git - linux-beck.git/commit
spi: dw: Remove test for non-zero spi->max_speed_hz
authorJarkko Nikula <jarkko.nikula@linux.intel.com>
Tue, 15 Sep 2015 13:26:24 +0000 (16:26 +0300)
committerMark Brown <broonie@kernel.org>
Thu, 17 Sep 2015 17:35:25 +0000 (18:35 +0100)
commit55f9a0706f60df4639010c91d6f28ce6b2351179
treefa5e6e6d178254a522b78c87b0c9cc9872a679ac
parent0ed36990a93b23c4873c77cdc1423429e40ed469
spi: dw: Remove test for non-zero spi->max_speed_hz

Test for non-zero spi->max_speed_hz in dw_spi_setup() looks needless as
spi_setup() defaults to master->max_speed_hz in case it is not set. This
drivers sets the master->max_speed_hz based on max_freq data passed to it
via dw_spi_add_host() call. I suppose things have already fallen apart if
dw_spi_mmio_probe() or spi_pci_probe() ever passes zero max_freq.

Signed-off-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-dw.c