]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/w7o/flash.c
Cleanup for GCC-4.x
[karo-tx-uboot.git] / board / w7o / flash.c
index d6ea63530c67a7b2566cfeca0f6cbc78849236bd..32815fb63e0833e88bdf865189604ae03299ae82 100644 (file)
@@ -805,7 +805,7 @@ static int _flash_protect(flash_info_t *info, long sector)
     int flag;
     ulong status;
     int rcode = 0;
-    volatile long *addr = (unsigned long *)sector;
+    volatile long *addr = (long *)sector;
 
     switch(info->flash_id & FLASH_TYPEMASK) {
        case FLASH_28F320J3A:
@@ -863,7 +863,7 @@ static int _flash_unprotect(flash_info_t *info, long sector)
     int flag;
     ulong status;
     int rcode = 0;
-    volatile long *addr = (unsigned long *)sector;
+    volatile long *addr = (long *)sector;
 
     switch(info->flash_id & FLASH_TYPEMASK) {
        case FLASH_28F320J3A: