X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/3143d2887ab665ef0e18490bc9780e99d535ccef..5b42ce672e76f21235f8e27179d516fc0ff24f17:/target/linux/brcm63xx/patches-2.6.33/040-bcm963xx_flashmap.patch diff --git a/target/linux/brcm63xx/patches-2.6.33/040-bcm963xx_flashmap.patch b/target/linux/brcm63xx/patches-2.6.33/040-bcm963xx_flashmap.patch index 4784de7d6..5f3e0a273 100644 --- a/target/linux/brcm63xx/patches-2.6.33/040-bcm963xx_flashmap.patch +++ b/target/linux/brcm63xx/patches-2.6.33/040-bcm963xx_flashmap.patch @@ -13,7 +13,7 @@ Signed-off-by: Axel Gembe --- a/drivers/mtd/maps/Kconfig +++ b/drivers/mtd/maps/Kconfig -@@ -259,6 +259,13 @@ config MTD_ALCHEMY +@@ -257,6 +257,13 @@ config MTD_ALCHEMY help Flash memory access on AMD Alchemy Pb/Db/RDK Reference Boards @@ -140,7 +140,7 @@ Signed-off-by: Axel Gembe + return -ENOMEM; + + /* Get the tag */ -+ ret = master->read(master,0x10000,sizeof(struct bcm_tag), &retlen, (void *)buf); ++ ret = master->read(master,mater->erasesize,sizeof(struct bcm_tag), &retlen, (void *)buf); + if (retlen != sizeof(struct bcm_tag)){ + vfree(buf); + return -EIO; @@ -342,7 +342,7 @@ Signed-off-by: Axel Gembe +MODULE_AUTHOR("Mike Albon "); --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c -@@ -722,20 +722,6 @@ static int board_get_mac_address(u8 *mac +@@ -721,20 +721,6 @@ static int board_get_mac_address(u8 *mac return 0; } @@ -363,7 +363,7 @@ Signed-off-by: Axel Gembe static struct resource mtd_resources[] = { { .start = 0, /* filled at runtime */ -@@ -745,12 +731,9 @@ static struct resource mtd_resources[] = +@@ -744,12 +730,9 @@ static struct resource mtd_resources[] = }; static struct platform_device mtd_dev = {