1 --- a/arch/mips/bcm63xx/dev-flash.c
2 +++ b/arch/mips/bcm63xx/dev-flash.c
4 #include <bcm63xx_regs.h>
5 #include <bcm63xx_io.h>
7 +#include "boards/board_common.h"
11 static struct mtd_partition mtd_partitions[] = {
12 @@ -164,6 +166,9 @@ int __init bcm63xx_flash_register(void)
15 case BCM63XX_FLASH_TYPE_PARALLEL:
16 + /* don't register when already registered through from dtb */
17 + if (board_of_device_present("pflash"))
20 if (!mtd_resources[0].start) {
21 /* read base address of boot chip select (0) */