linux/generic: sync 2.6.37 patches
[openwrt/svn-archive/archive.git] / target / linux / generic / patches-2.6.37 / 065-rootfs_split.patch
index 532cf3ae59233e9331122129f8a4505a70c154bd..b8fcd0c22bd278417bf0dae38aa1386c7ef44ca2 100644 (file)
 +      printk(KERN_INFO "mtd: partition \"%s\" created automatically, ofs=%llX, len=%llX \n",
 +              ROOTFS_SPLIT_NAME, dpart->offset, dpart->size);
 +
-+      slave = add_one_partition(master, dpart, 0, split_offset);
++      slave = allocate_partition(master, dpart, 0, split_offset);
 +      if (!slave) {
 +              kfree(dpart);
 +              return -ENOMEM;