diff options
author | Hui Wang <jason77.wang@gmail.com> | 2012-07-12 22:51:28 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-07-13 06:01:46 -0400 |
commit | 872675df2795389fd47b7a0ad084ba1e91665c87 (patch) | |
tree | 603944c490834170e4c021226ec85daaeb14a108 /drivers/spi | |
parent | 9e9fd65d1fa51d919d54d731be0e66492b5b6c5a (diff) |
spi/imx: remove redundant config.speed_hz setting
The config.speed_hz is just setted at the two lines ahead of it,
obviously we don't need to copy the code to set the config.speed_hz
again. Remove it for a cleanup.
Cc: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Hui Wang <jason77.wang@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'drivers/spi')
-rw-r--r-- | drivers/spi/spi-imx.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/spi/spi-imx.c b/drivers/spi/spi-imx.c index 47877d687614..c12052fef68c 100644 --- a/drivers/spi/spi-imx.c +++ b/drivers/spi/spi-imx.c | |||
@@ -688,8 +688,6 @@ static int spi_imx_setupxfer(struct spi_device *spi, | |||
688 | config.speed_hz = spi->max_speed_hz; | 688 | config.speed_hz = spi->max_speed_hz; |
689 | if (!config.bpw) | 689 | if (!config.bpw) |
690 | config.bpw = spi->bits_per_word; | 690 | config.bpw = spi->bits_per_word; |
691 | if (!config.speed_hz) | ||
692 | config.speed_hz = spi->max_speed_hz; | ||
693 | 691 | ||
694 | /* Initialize the functions for transfer */ | 692 | /* Initialize the functions for transfer */ |
695 | if (config.bpw <= 8) { | 693 | if (config.bpw <= 8) { |