kernel: mtdsplit: bcm_wfi: remove brcm,wfi-sercomm compatibility
authorÁlvaro Fernández Rojas <noltari@gmail.com>
Tue, 2 Jun 2020 07:02:23 +0000 (09:02 +0200)
committerÁlvaro Fernández Rojas <noltari@gmail.com>
Tue, 2 Jun 2020 07:08:38 +0000 (09:08 +0200)
The only Sercomm WFI user has been migrated to a dedicated firmware parser.
Keep support for no cferam partition based on a boolean DT property.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_bcm_wfi.c

index 7eb6526f9e4595d28d6d227b4eb4ab921c91cd47..4e46ded587ff8f40e2cce6c8abafe5b552010c1c 100644 (file)
@@ -150,7 +150,7 @@ static int mtdsplit_parse_bcm_wfi(struct mtd_info *master,
        if (!mtd_node)
                return -EINVAL;
 
-       if (of_device_is_compatible(mtd_node, "brcm,wfi-sercomm"))
+       if (of_property_read_bool(mtd_node, "brcm,no-cferam"))
                cfe_part = false;
 
        if (cfe_part) {
@@ -215,7 +215,6 @@ static int mtdsplit_parse_bcm_wfi(struct mtd_info *master,
 
 static const struct of_device_id mtdsplit_bcm_wfi_of_match[] = {
        { .compatible = "brcm,wfi" },
-       { .compatible = "brcm,wfi-sercomm" },
        { },
 };