aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/spi
diff options
context:
space:
mode:
authorGrant Likely <grant.likely@secretlab.ca>2011-06-17 10:32:26 -0400
committerGrant Likely <grant.likely@secretlab.ca>2011-06-17 10:32:26 -0400
commitf8db4cc4f2b11bdded6c94f0d55906847474b982 (patch)
treed1b99d186edb9d203fafd896f19487125a2395af /drivers/spi
parent2e2de2e314672c8b6644f67a35556d6df780493d (diff)
parente479c60456ef22b0869432887216186aabaed086 (diff)
Merge branch 'spi/merge' into spi/next
Diffstat (limited to 'drivers/spi')
-rw-r--r--drivers/spi/spi-bfin5xx.c7
-rw-r--r--drivers/spi/spi-pl022.c1
2 files changed, 5 insertions, 3 deletions
diff --git a/drivers/spi/spi-bfin5xx.c b/drivers/spi/spi-bfin5xx.c
index f706dba165cf..cc880c95e7de 100644
--- a/drivers/spi/spi-bfin5xx.c
+++ b/drivers/spi/spi-bfin5xx.c
@@ -681,13 +681,14 @@ static void bfin_spi_pump_transfers(unsigned long data)
681 drv_data->cs_change = transfer->cs_change; 681 drv_data->cs_change = transfer->cs_change;
682 682
683 /* Bits per word setup */ 683 /* Bits per word setup */
684 bits_per_word = transfer->bits_per_word ? : message->spi->bits_per_word; 684 bits_per_word = transfer->bits_per_word ? :
685 if ((bits_per_word > 0) && (bits_per_word % 16 == 0)) { 685 message->spi->bits_per_word ? : 8;
686 if (bits_per_word % 16 == 0) {
686 drv_data->n_bytes = bits_per_word/8; 687 drv_data->n_bytes = bits_per_word/8;
687 drv_data->len = (transfer->len) >> 1; 688 drv_data->len = (transfer->len) >> 1;
688 cr_width = BIT_CTL_WORDSIZE; 689 cr_width = BIT_CTL_WORDSIZE;
689 drv_data->ops = &bfin_bfin_spi_transfer_ops_u16; 690 drv_data->ops = &bfin_bfin_spi_transfer_ops_u16;
690 } else if ((bits_per_word > 0) && (bits_per_word % 8 == 0)) { 691 } else if (bits_per_word % 8 == 0) {
691 drv_data->n_bytes = bits_per_word/8; 692 drv_data->n_bytes = bits_per_word/8;
692 drv_data->len = transfer->len; 693 drv_data->len = transfer->len;
693 cr_width = 0; 694 cr_width = 0;
diff --git a/drivers/spi/spi-pl022.c b/drivers/spi/spi-pl022.c
index 77ffd18cff2f..eba88c749fb1 100644
--- a/drivers/spi/spi-pl022.c
+++ b/drivers/spi/spi-pl022.c
@@ -1950,6 +1950,7 @@ static int pl022_setup(struct spi_device *spi)
1950 } 1950 }
1951 if ((clk_freq.cpsdvsr < CPSDVR_MIN) 1951 if ((clk_freq.cpsdvsr < CPSDVR_MIN)
1952 || (clk_freq.cpsdvsr > CPSDVR_MAX)) { 1952 || (clk_freq.cpsdvsr > CPSDVR_MAX)) {
1953 status = -EINVAL;
1953 dev_err(&spi->dev, 1954 dev_err(&spi->dev,
1954 "cpsdvsr is configured incorrectly\n"); 1955 "cpsdvsr is configured incorrectly\n");
1955 goto err_config_params; 1956 goto err_config_params;