Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 347135
b: refs/heads/master
c: 2d350e5
h: refs/heads/master
i:
  347133: 7244b3f
  347131: 7699ec2
  347127: fd2e2ce
  347119: 30cd2ee
  347103: 595cf70
  347071: d2e2e6d
  347007: d8abd79
  346879: ecedc39
  346623: ba53838
  346111: d15aff1
v: v3
  • Loading branch information
Vikram Narayanan authored and Artem Bityutskiy committed Nov 15, 2012
1 parent 47854bb commit 64d6a26
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 438db5a92b7526a12591f764042528a86d2ebb4b
refs/heads/master: 2d350e5adb44b3fbc3b6d7ff5b8d086e7730c9b4
14 changes: 8 additions & 6 deletions trunk/drivers/mtd/nand/gpmi-nand/gpmi-nand.c
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ void prepare_data_dma(struct gpmi_nand_data *this, enum dma_data_direction dr)

ret = dma_map_sg(this->dev, sgl, 1, dr);
if (ret == 0)
pr_err("map failed.\n");
pr_err("DMA mapping failed.\n");

this->direct_dma_map_ok = false;
}
Expand Down Expand Up @@ -456,7 +456,7 @@ static int __devinit acquire_dma_channels(struct gpmi_nand_data *this)

dma_chan = dma_request_channel(mask, gpmi_dma_filter, this);
if (!dma_chan) {
pr_err("dma_request_channel failed.\n");
pr_err("Failed to request DMA channel.\n");
goto acquire_err;
}

Expand Down Expand Up @@ -625,7 +625,8 @@ static int read_page_prepare(struct gpmi_nand_data *this,
length, DMA_FROM_DEVICE);
if (dma_mapping_error(dev, dest_phys)) {
if (alt_size < length) {
pr_err("Alternate buffer is too small\n");
pr_err("%s, Alternate buffer is too small\n",
__func__);
return -ENOMEM;
}
goto map_failed;
Expand Down Expand Up @@ -675,7 +676,8 @@ static int send_page_prepare(struct gpmi_nand_data *this,
DMA_TO_DEVICE);
if (dma_mapping_error(dev, source_phys)) {
if (alt_size < length) {
pr_err("Alternate buffer is too small\n");
pr_err("%s, Alternate buffer is too small\n",
__func__);
return -ENOMEM;
}
goto map_failed;
Expand Down Expand Up @@ -763,7 +765,7 @@ static int gpmi_alloc_dma_buffer(struct gpmi_nand_data *this)

error_alloc:
gpmi_free_dma_buffer(this);
pr_err("allocate DMA buffer ret!!\n");
pr_err("Error allocating DMA buffers!\n");
return -ENOMEM;
}

Expand Down Expand Up @@ -1474,7 +1476,7 @@ static int gpmi_set_geometry(struct gpmi_nand_data *this)
/* Set up the NFC geometry which is used by BCH. */
ret = bch_set_geometry(this);
if (ret) {
pr_err("set geometry ret : %d\n", ret);
pr_err("Error setting BCH geometry : %d\n", ret);
return ret;
}

Expand Down

0 comments on commit 64d6a26

Please sign in to comment.