diff options
Diffstat (limited to 'drivers/mtd/nand/r852.c')
-rw-r--r-- | drivers/mtd/nand/r852.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/mtd/nand/r852.c b/drivers/mtd/nand/r852.c index 6322d1fb5d62..cae2e013c986 100644 --- a/drivers/mtd/nand/r852.c +++ b/drivers/mtd/nand/r852.c | |||
@@ -185,7 +185,7 @@ static void r852_do_dma(struct r852_device *dev, uint8_t *buf, int do_read) | |||
185 | 185 | ||
186 | dbg_verbose("doing dma %s ", do_read ? "read" : "write"); | 186 | dbg_verbose("doing dma %s ", do_read ? "read" : "write"); |
187 | 187 | ||
188 | /* Set intial dma state: for reading first fill on board buffer, | 188 | /* Set initial dma state: for reading first fill on board buffer, |
189 | from device, for writes first fill the buffer from memory*/ | 189 | from device, for writes first fill the buffer from memory*/ |
190 | dev->dma_state = do_read ? DMA_INTERNAL : DMA_MEMORY; | 190 | dev->dma_state = do_read ? DMA_INTERNAL : DMA_MEMORY; |
191 | 191 | ||
@@ -766,7 +766,7 @@ static irqreturn_t r852_irq(int irq, void *data) | |||
766 | ret = IRQ_HANDLED; | 766 | ret = IRQ_HANDLED; |
767 | dev->card_detected = !!(card_status & R852_CARD_IRQ_INSERT); | 767 | dev->card_detected = !!(card_status & R852_CARD_IRQ_INSERT); |
768 | 768 | ||
769 | /* we shouldn't recieve any interrupts if we wait for card | 769 | /* we shouldn't receive any interrupts if we wait for card |
770 | to settle */ | 770 | to settle */ |
771 | WARN_ON(dev->card_unstable); | 771 | WARN_ON(dev->card_unstable); |
772 | 772 | ||
@@ -794,13 +794,13 @@ static irqreturn_t r852_irq(int irq, void *data) | |||
794 | ret = IRQ_HANDLED; | 794 | ret = IRQ_HANDLED; |
795 | 795 | ||
796 | if (dma_status & R852_DMA_IRQ_ERROR) { | 796 | if (dma_status & R852_DMA_IRQ_ERROR) { |
797 | dbg("recieved dma error IRQ"); | 797 | dbg("received dma error IRQ"); |
798 | r852_dma_done(dev, -EIO); | 798 | r852_dma_done(dev, -EIO); |
799 | complete(&dev->dma_done); | 799 | complete(&dev->dma_done); |
800 | goto out; | 800 | goto out; |
801 | } | 801 | } |
802 | 802 | ||
803 | /* recieved DMA interrupt out of nowhere? */ | 803 | /* received DMA interrupt out of nowhere? */ |
804 | WARN_ON_ONCE(dev->dma_stage == 0); | 804 | WARN_ON_ONCE(dev->dma_stage == 0); |
805 | 805 | ||
806 | if (dev->dma_stage == 0) | 806 | if (dev->dma_stage == 0) |
@@ -960,7 +960,7 @@ int r852_probe(struct pci_dev *pci_dev, const struct pci_device_id *id) | |||
960 | &dev->card_detect_work, 0); | 960 | &dev->card_detect_work, 0); |
961 | 961 | ||
962 | 962 | ||
963 | printk(KERN_NOTICE DRV_NAME ": driver loaded succesfully\n"); | 963 | printk(KERN_NOTICE DRV_NAME ": driver loaded successfully\n"); |
964 | return 0; | 964 | return 0; |
965 | 965 | ||
966 | error10: | 966 | error10: |