diff options
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/spi/spi-orion.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/spi/spi-orion.c b/drivers/spi/spi-orion.c index d018a4aac3a1..24844984ef36 100644 --- a/drivers/spi/spi-orion.c +++ b/drivers/spi/spi-orion.c | |||
| @@ -382,8 +382,10 @@ static int orion_spi_probe(struct platform_device *pdev) | |||
| 382 | goto out; | 382 | goto out; |
| 383 | } | 383 | } |
| 384 | 384 | ||
| 385 | clk_prepare(spi->clk); | 385 | status = clk_prepare_enable(spi->clk); |
| 386 | clk_enable(spi->clk); | 386 | if (status) |
| 387 | goto out; | ||
| 388 | |||
| 387 | tclk_hz = clk_get_rate(spi->clk); | 389 | tclk_hz = clk_get_rate(spi->clk); |
| 388 | master->max_speed_hz = DIV_ROUND_UP(tclk_hz, 4); | 390 | master->max_speed_hz = DIV_ROUND_UP(tclk_hz, 4); |
| 389 | master->min_speed_hz = DIV_ROUND_UP(tclk_hz, 30); | 391 | master->min_speed_hz = DIV_ROUND_UP(tclk_hz, 30); |
