X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/1758bca385084d9e629758d4965cbd8368742369..5b4bdb577c773dd763e13a8bf934683fdbf524fa:/target/linux/brcm-2.4/files/drivers/mtd/maps/bcm947xx-flash.c?ds=sidebyside diff --git a/target/linux/brcm-2.4/files/drivers/mtd/maps/bcm947xx-flash.c b/target/linux/brcm-2.4/files/drivers/mtd/maps/bcm947xx-flash.c index 3176eb055..eea7f137d 100644 --- a/target/linux/brcm-2.4/files/drivers/mtd/maps/bcm947xx-flash.c +++ b/target/linux/brcm-2.4/files/drivers/mtd/maps/bcm947xx-flash.c @@ -56,7 +56,6 @@ #include #include #include -#include #include #include #include @@ -158,7 +157,7 @@ static struct mtd_partition bcm947xx_parts[] = { { name: "linux", offset: 0, size: 0, }, { name: "rootfs", offset: 0, size: 0, }, { name: "nvram", offset: 0, size: 0, }, - { name: "OpenWrt", offset: 0, size: 0, }, + { name: "rootfs_data", offset: 0, size: 0, }, { name: NULL, }, }; @@ -470,7 +469,7 @@ mod_init_t init_bcm947xx_map(void) /* Check strapping option if chipcommon exists */ if ((cc = sb_setcore(sbh, SB_CC, 0))) { - fltype = readl(&cc->capabilities) & CAP_FLASH_MASK; + fltype = readl(&cc->capabilities) & CC_CAP_FLASH_MASK; if (fltype == PFLASH) { bcm947xx_map.map_priv_2 = 1; window_addr = 0x1c000000;