Skip to content

Commit

Permalink
mtd: omap2: fixing compilation warning
Browse files Browse the repository at this point in the history
Fixing below warning in compilation:
drivers/mtd/nand/omap2.c: In function 'omap_write_buf_dma_pref':
drivers/mtd/nand/omap2.c:508: warning: passing argument 2 of
'omap_nand_dma_transfer' discards qualifiers from pointer target type

Signed-off-by: Vimal Singh <vimalsingh@ti.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
  • Loading branch information
Vimal Singh authored and David Woodhouse committed Feb 26, 2010
1 parent f3e69c6 commit bdaefc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mtd/nand/omap2.c
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ static void omap_write_buf_dma_pref(struct mtd_info *mtd,
omap_write_buf_pref(mtd, buf, len);
else
/* start transfer in DMA mode */
omap_nand_dma_transfer(mtd, buf, len, 0x1);
omap_nand_dma_transfer(mtd, (u_char *) buf, len, 0x1);
}

/**
Expand Down

0 comments on commit bdaefc4

Please sign in to comment.