diff options
-rw-r--r-- | drivers/spi/spi-dw.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/spi/spi-dw.c b/drivers/spi/spi-dw.c index bf98d63d92b3..9e4a0aa7d341 100644 --- a/drivers/spi/spi-dw.c +++ b/drivers/spi/spi-dw.c | |||
@@ -439,12 +439,6 @@ static void pump_transfers(unsigned long data) | |||
439 | 439 | ||
440 | if (transfer->speed_hz != speed) { | 440 | if (transfer->speed_hz != speed) { |
441 | speed = transfer->speed_hz; | 441 | speed = transfer->speed_hz; |
442 | if (speed > dws->max_freq) { | ||
443 | printk(KERN_ERR "MRST SPI0: unsupported" | ||
444 | "freq: %dHz\n", speed); | ||
445 | message->status = -EIO; | ||
446 | goto early_exit; | ||
447 | } | ||
448 | 442 | ||
449 | /* clk_div doesn't support odd number */ | 443 | /* clk_div doesn't support odd number */ |
450 | clk_div = dws->max_freq / speed; | 444 | clk_div = dws->max_freq / speed; |
@@ -809,6 +803,7 @@ int dw_spi_add_host(struct device *dev, struct dw_spi *dws) | |||
809 | master->cleanup = dw_spi_cleanup; | 803 | master->cleanup = dw_spi_cleanup; |
810 | master->setup = dw_spi_setup; | 804 | master->setup = dw_spi_setup; |
811 | master->transfer = dw_spi_transfer; | 805 | master->transfer = dw_spi_transfer; |
806 | master->max_speed_hz = dws->max_freq; | ||
812 | 807 | ||
813 | /* Basic HW init */ | 808 | /* Basic HW init */ |
814 | spi_hw_init(dws); | 809 | spi_hw_init(dws); |