ipq806x: Add support for linux-4.4
[openwrt/openwrt.git] / target / linux / ipq806x / patches-4.4 / 302-mtd-qcom-smem-rename-rootfs-ubi.patch
1 --- a/drivers/mtd/qcom_smem_part.c
2 +++ b/drivers/mtd/qcom_smem_part.c
3 @@ -189,6 +189,10 @@ static int parse_qcom_smem_partitions(st
4 m_part->size = le32_to_cpu(s_part->size) * (*smem_blksz);
5 m_part->offset = le32_to_cpu(s_part->start) * (*smem_blksz);
6
7 + /* "rootfs" conflicts with OpenWrt auto mounting */
8 + if (mtd_type_is_nand(master) && !strcmp(m_part->name, "rootfs"))
9 + m_part->name = "ubi";
10 +
11 /*
12 * The last SMEM partition may have its size marked as
13 * something like 0xffffffff, which means "until the end of the