1 --- a/drivers/mtd/trxsplit.c
2 +++ b/drivers/mtd/trxsplit.c
3 @@ -144,7 +144,7 @@ static void trxsplit_create_partitions(s
7 - err = add_mtd_partitions(mtd, trx_parts, trx_nr_parts);
8 + err = mtd_device_register(mtd, trx_parts, trx_nr_parts);
10 printk(KERN_ALERT PFX "adding TRX partitions failed\n");
12 @@ -159,7 +159,7 @@ static int trxsplit_refresh_partitions(s
13 mtd->name, MTD_BLOCK_MAJOR, mtd->index);
15 /* remove old partitions */
16 - del_mtd_partitions(mtd);
17 + mtd_device_unregister(mtd);
19 trxsplit_findtrx(mtd);