adm5120: remove 2.6.32 support
[openwrt/openwrt.git] / target / linux / adm5120 / patches-3.3 / a14-mtd-trxsplit-fixes.patch
1 --- a/drivers/mtd/trxsplit.c
2 +++ b/drivers/mtd/trxsplit.c
3 @@ -144,7 +144,7 @@ static void trxsplit_create_partitions(s
4 part = &trx_parts[i];
5 part->name = "rootfs";
6
7 - err = add_mtd_partitions(mtd, trx_parts, trx_nr_parts);
8 + err = mtd_device_register(mtd, trx_parts, trx_nr_parts);
9 if (err) {
10 printk(KERN_ALERT PFX "adding TRX partitions failed\n");
11 return;
12 @@ -159,7 +159,7 @@ static int trxsplit_refresh_partitions(s
13 mtd->name, MTD_BLOCK_MAJOR, mtd->index);
14
15 /* remove old partitions */
16 - del_mtd_partitions(mtd);
17 + mtd_device_unregister(mtd);
18
19 trxsplit_findtrx(mtd);
20 if (!trx_mtd)