diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2015-03-31 15:49:38 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-03-31 16:05:43 +0200 |
commit | eecacf73a40f37e74dc9d0453283c79b91f34d51 (patch) | |
tree | 8e05a7e00a1b5e87b73f02d17590b733d05e013a /drivers/spi | |
parent | spi: pxa2xx: replace ugly table by approximation (diff) | |
download | linux-eecacf73a40f37e74dc9d0453283c79b91f34d51.tar.xz linux-eecacf73a40f37e74dc9d0453283c79b91f34d51.zip |
spi: pxa2xx: missing break in pxa2xx_ssp_get_clk_div()
We refactored this code but accidentally left out a break statement so
QUARK_X1000_SSP isn't handled correctly.
Fixes: 025ffe88ee60 ('spi: pxa2xx: shift clk_div in one place')
Tested-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi')
-rw-r--r-- | drivers/spi/spi-pxa2xx.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/spi/spi-pxa2xx.c b/drivers/spi/spi-pxa2xx.c index 60526a591742..e3223ac75a7c 100644 --- a/drivers/spi/spi-pxa2xx.c +++ b/drivers/spi/spi-pxa2xx.c @@ -791,8 +791,10 @@ static unsigned int pxa2xx_ssp_get_clk_div(struct driver_data *drv_data, switch (drv_data->ssp_type) { case QUARK_X1000_SSP: clk_div = quark_x1000_get_clk_div(rate, &chip->dds_rate); + break; default: clk_div = ssp_get_clk_div(drv_data, rate); + break; } return clk_div << 8; } |