source: trunk/target/linux/adm5120/patches-3.3/a14-mtd-trxsplit-fixes.patch @ 31474

Last change on this file since 31474 was 31474, checked in by juhosg, 4 years ago

adm5120: add 3.3 support

Partially based on the 3.1 patches by Hartmut Knaack <knaack.h [at] gmx.de>

File size: 608 bytes
  • drivers/mtd/trxsplit.c

    a b static void trxsplit_create_partitions(s 
    144144        part = &trx_parts[i]; 
    145145        part->name = "rootfs"; 
    146146 
    147         err = add_mtd_partitions(mtd, trx_parts, trx_nr_parts); 
     147        err = mtd_device_register(mtd, trx_parts, trx_nr_parts); 
    148148        if (err) { 
    149149                printk(KERN_ALERT PFX "adding TRX partitions failed\n"); 
    150150                return; 
    static int trxsplit_refresh_partitions(s 
    159159                mtd->name, MTD_BLOCK_MAJOR, mtd->index); 
    160160 
    161161        /* remove old partitions */ 
    162         del_mtd_partitions(mtd); 
     162        mtd_device_unregister(mtd); 
    163163 
    164164        trxsplit_findtrx(mtd); 
    165165        if (!trx_mtd) 
Note: See TracBrowser for help on using the repository browser.