aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/mtd/nand/pxa3xx_nand.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mtd/nand/pxa3xx_nand.c b/drivers/mtd/nand/pxa3xx_nand.c
index 6ea520ae2410..75aa8713abd1 100644
--- a/drivers/mtd/nand/pxa3xx_nand.c
+++ b/drivers/mtd/nand/pxa3xx_nand.c
@@ -489,7 +489,7 @@ static int handle_data_pio(struct pxa3xx_nand_info *info)
489 switch (info->state) { 489 switch (info->state) {
490 case STATE_PIO_WRITING: 490 case STATE_PIO_WRITING:
491 __raw_writesl(info->mmio_base + NDDB, info->data_buff, 491 __raw_writesl(info->mmio_base + NDDB, info->data_buff,
492 info->data_size << 2); 492 info->data_size >> 2);
493 493
494 enable_int(info, NDSR_CS0_BBD | NDSR_CS0_CMDD); 494 enable_int(info, NDSR_CS0_BBD | NDSR_CS0_CMDD);
495 495
@@ -501,7 +501,7 @@ static int handle_data_pio(struct pxa3xx_nand_info *info)
501 break; 501 break;
502 case STATE_PIO_READING: 502 case STATE_PIO_READING:
503 __raw_readsl(info->mmio_base + NDDB, info->data_buff, 503 __raw_readsl(info->mmio_base + NDDB, info->data_buff,
504 info->data_size << 2); 504 info->data_size >> 2);
505 break; 505 break;
506 default: 506 default:
507 printk(KERN_ERR "%s: invalid state %d\n", __func__, 507 printk(KERN_ERR "%s: invalid state %d\n", __func__,