Changeset 39734


Ignore:
Timestamp:
2014-02-23T22:15:56+01:00 (4 years ago)
Author:
juhosg
Message:

x86: fix MTD API usage in the RDC specific board patch

Signed-off-by: Gabor Juhos <juhosg@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/x86/patches-3.10/100-rdc_boards.patch

    r39059 r39734  
    139139--- /dev/null 
    140140+++ b/arch/x86/mach-rdc321x/boards/ar525w.c 
    141 @@ -0,0 +1,247 @@ 
     141@@ -0,0 +1,251 @@ 
    142142+/* 
    143143+ * ar525w RDC321x platform devices 
     
    295295+       } 
    296296+ 
    297 +       res =  master->read(master, 0x0, bufferlength, &len, buffer); 
     297+       res =  mtd_read(master, 0x0, bufferlength, &len, buffer); 
    298298+       if (res || len != bufferlength) 
    299299+               goto out; 
     
    311311+       header->checksum = crc32(buffer, bufferlength); 
    312312+ 
    313 +       if (master->unlock) 
    314 +               master->unlock(master, 0, master->erasesize); 
     313+       res = mtd_unlock(master, 0, master->erasesize); 
     314+       if (res != 0 && res != -EOPNOTSUPP) { 
     315+               printk(KERN_ERR "Can't unlock image header\n"); 
     316+               goto out; 
     317+       } 
     318+ 
    315319+       res = erase_write (master, 0, master->erasesize, buffer); 
    316320+       if (res) 
     
    335339+               return -ENOSYS; 
    336340+ 
    337 +       res =  master->read(master, 0x0, sizeof(header), &len, (char *)&header); 
     341+       res =  mtd_read(master, 0x0, sizeof(header), &len, (char *)&header); 
    338342+       if (res) 
    339343+               return res; 
     
    431435+       u16 tmp; 
    432436+ 
    433 +       res =  master->read(master, 0x4000 + 1036, 2, &len, (char *) &tmp); 
     437+       res =  mtd_read(master, 0x4000 + 1036, 2, &len, (char *) &tmp); 
    434438+       if (res) 
    435439+               return res; 
     
    607611+               return -ENOSYS; 
    608612+ 
    609 +       res =  master->read(master, 0x8000, sizeof(header), &len, (char *)&header); 
     613+       res =  mtd_read(master, 0x8000, sizeof(header), &len, (char *)&header); 
    610614+       if (res) 
    611615+               return res; 
Note: See TracChangeset for help on using the changeset viewer.