aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/brcm63xx/files/arch/mips/bcm63xx/boards
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2008-11-27 20:40:03 +0000
committerFlorian Fainelli <florian@openwrt.org>2008-11-27 20:40:03 +0000
commit95ea278ae9ffa7750335591cbe424cf046743251 (patch)
treec0979d127d4f82dc2c5241de5864d5aa981e1b25 /target/linux/brcm63xx/files/arch/mips/bcm63xx/boards
parentf7101b8d326a901764f816d5f5c6550c45818cca (diff)
downloadmaster-187ad058-95ea278ae9ffa7750335591cbe424cf046743251.tar.gz
master-187ad058-95ea278ae9ffa7750335591cbe424cf046743251.tar.bz2
master-187ad058-95ea278ae9ffa7750335591cbe424cf046743251.zip
[brcm63xx] bcm63xx MTD driver cleanup and fixes:
- convert to platform_driver - get the window_size/addr from the board setup code - indentation fixes - remove duplicate code - move bcm_tag declaration out of the MTD driver git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13379 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/brcm63xx/files/arch/mips/bcm63xx/boards')
-rw-r--r--target/linux/brcm63xx/files/arch/mips/bcm63xx/boards/board_bcm963xx.c19
1 files changed, 1 insertions, 18 deletions
diff --git a/target/linux/brcm63xx/files/arch/mips/bcm63xx/boards/board_bcm963xx.c b/target/linux/brcm63xx/files/arch/mips/bcm63xx/boards/board_bcm963xx.c
index 1c3073efda..5623d79025 100644
--- a/target/linux/brcm63xx/files/arch/mips/bcm63xx/boards/board_bcm963xx.c
+++ b/target/linux/brcm63xx/files/arch/mips/bcm63xx/boards/board_bcm963xx.c
@@ -312,20 +312,6 @@ static int board_get_mac_address(u8 *mac)
return 0;
}
-static struct mtd_partition mtd_partitions[] = {
- {
- .name = "cfe",
- .offset = 0x0,
- .size = 0x40000,
- }
-};
-
-static struct physmap_flash_data flash_data = {
- .width = 2,
- .nr_parts = ARRAY_SIZE(mtd_partitions),
- .parts = mtd_partitions,
-};
-
static struct resource mtd_resources[] = {
{
.start = 0, /* filled at runtime */
@@ -335,12 +321,9 @@ static struct resource mtd_resources[] = {
};
static struct platform_device mtd_dev = {
- .name = "physmap-flash",
+ .name = "bcm963xx-flash",
.resource = mtd_resources,
.num_resources = ARRAY_SIZE(mtd_resources),
- .dev = {
- .platform_data = &flash_data,
- },
};
/*