kernel: backport mtd patches with Broadcom of_match_table-s
[openwrt/openwrt.git] / target / linux / bcm53xx / patches-4.14 / 410-Use-brcm-bcm947xx-cfe-partitions-binding-for-Broadco.patch
index c466cf3afe4d56e73d29ce410ab513da765f79ae..dd8ce3d30370a0f905e0699b2ed61b00bb566e14 100644 (file)
@@ -32,22 +32,3 @@ Subject: [PATCH] Use "brcm,bcm947xx-cfe-partitions" binding for Broadcom
                };
        };
  
---- a/drivers/mtd/bcm47xxpart.c
-+++ b/drivers/mtd/bcm47xxpart.c
-@@ -314,9 +314,16 @@ static int bcm47xxpart_parse(struct mtd_
-       return curr_part;
- };
-+static const struct of_device_id bcm47xxpart_of_match_table[] = {
-+      { .compatible = "brcm,bcm947xx-cfe-partitions" },
-+      {},
-+};
-+MODULE_DEVICE_TABLE(of, bcm47xxpart_of_match_table);
-+
- static struct mtd_part_parser bcm47xxpart_mtd_parser = {
-       .parse_fn = bcm47xxpart_parse,
-       .name = "bcm47xxpart",
-+      .of_match_table = bcm47xxpart_of_match_table,
- };
- module_mtd_part_parser(bcm47xxpart_mtd_parser);