summaryrefslogtreecommitdiff
path: root/drivers/spi/spi-pxa2xx.c
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2015-03-31 16:49:38 +0300
committerMark Brown <broonie@kernel.org>2015-03-31 15:05:43 +0100
commiteecacf73a40f37e74dc9d0453283c79b91f34d51 (patch)
tree8e05a7e00a1b5e87b73f02d17590b733d05e013a /drivers/spi/spi-pxa2xx.c
parent9df461eca18f5395ee84670cdba6755dddec1898 (diff)
downloadlwn-eecacf73a40f37e74dc9d0453283c79b91f34d51.tar.gz
lwn-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/spi-pxa2xx.c')
-rw-r--r--drivers/spi/spi-pxa2xx.c2
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;
}