Skip to content

Commit

Permalink
spi: pxa2xx: missing break in pxa2xx_ssp_get_clk_div()
Browse files Browse the repository at this point in the history
We refactored this code but accidentally left out a break statement so
QUARK_X1000_SSP isn't handled correctly.

Fixes: 025ffe8 ('spi: pxa2xx: shift clk_div in one place')
Tested-by: Andy Shevchenko <[email protected]>
Signed-off-by: Dan Carpenter <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
  • Loading branch information
Dan Carpenter authored and broonie committed Mar 31, 2015
1 parent 9df461e commit eecacf7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/spi/spi-pxa2xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit eecacf7

Please sign in to comment.