]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - board/hymod/bsp.c
fpga: constify to fix build warning
[karo-tx-uboot.git] / board / hymod / bsp.c
index 9a929413bd0f7743e5b1241e0999ec1beaa9ceea..2cd3707d72cf0f227aeb842e9b84d1797be40078 100644 (file)
@@ -75,14 +75,14 @@ DECLARE_GLOBAL_DATA_PTR;
  */
 
 int
-fpga_load (int mezz, uchar *addr, ulong size)
+fpga_load(int mezz, const uchar *addr, ulong size)
 {
        hymod_conf_t *cp = &gd->bd->bi_hymod_conf;
        xlx_info_t *fp;
        xlx_iopins_t *fpgaio;
        volatile uchar *fpgabase;
        volatile uint cnt;
-       uchar *eaddr = addr + size;
+       const uchar *eaddr = addr + size;
        int result;
 
        if (mezz)