summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/mtd/bcm63xxpart.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/mtd/bcm63xxpart.c b/drivers/mtd/bcm63xxpart.c
index 41d1d3149c61..f639b4c960f0 100644
--- a/drivers/mtd/bcm63xxpart.c
+++ b/drivers/mtd/bcm63xxpart.c
@@ -34,6 +34,7 @@
34#include <linux/vmalloc.h> 34#include <linux/vmalloc.h>
35#include <linux/mtd/mtd.h> 35#include <linux/mtd/mtd.h>
36#include <linux/mtd/partitions.h> 36#include <linux/mtd/partitions.h>
37#include <linux/of.h>
37 38
38#define BCM963XX_CFE_BLOCK_SIZE SZ_64K /* always at least 64KiB */ 39#define BCM963XX_CFE_BLOCK_SIZE SZ_64K /* always at least 64KiB */
39 40
@@ -311,9 +312,16 @@ out:
311 return ret; 312 return ret;
312}; 313};
313 314
315static const struct of_device_id parse_bcm63xx_cfe_match_table[] = {
316 { .compatible = "brcm,bcm963xx-cfe-nor-partitions" },
317 {},
318};
319MODULE_DEVICE_TABLE(of, parse_bcm63xx_cfe_match_table);
320
314static struct mtd_part_parser bcm63xx_cfe_parser = { 321static struct mtd_part_parser bcm63xx_cfe_parser = {
315 .parse_fn = bcm63xx_parse_cfe_partitions, 322 .parse_fn = bcm63xx_parse_cfe_partitions,
316 .name = "bcm63xxpart", 323 .name = "bcm63xxpart",
324 .of_match_table = parse_bcm63xx_cfe_match_table,
317}; 325};
318module_mtd_part_parser(bcm63xx_cfe_parser); 326module_mtd_part_parser(bcm63xx_cfe_parser);
319 327