summaryrefslogtreecommitdiffstats
path: root/arch/arm/boards/at91sam9261ek
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2011-07-16 18:27:41 +0800
committerJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2011-07-18 07:57:51 +0800
commit23c7b4c4f08bc555aa7b8410b567d1fe3100c2e2 (patch)
tree29d2417c310cdfebab2ce31ac54e87af8ccac733 /arch/arm/boards/at91sam9261ek
parent3230114800af52599b6edf61a7a0930ee4ec68ac (diff)
downloadbarebox-23c7b4c4f08bc555aa7b8410b567d1fe3100c2e2.tar.gz
barebox-23c7b4c4f08bc555aa7b8410b567d1fe3100c2e2.tar.xz
dm9200: use "struct resource" instead of platform_data
drop iobase and iodata in favor of resources Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Diffstat (limited to 'arch/arm/boards/at91sam9261ek')
-rw-r--r--arch/arm/boards/at91sam9261ek/init.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/arch/arm/boards/at91sam9261ek/init.c b/arch/arm/boards/at91sam9261ek/init.c
index 3def38e136..4e52ab8ea1 100644
--- a/arch/arm/boards/at91sam9261ek/init.c
+++ b/arch/arm/boards/at91sam9261ek/init.c
@@ -89,8 +89,6 @@ static void ek_add_device_nand(void)
*/
#if defined(CONFIG_DRIVER_NET_DM9000)
static struct dm9000_platform_data dm9000_data = {
- .iobase = AT91_CHIPSELECT_2,
- .iodata = AT91_CHIPSELECT_2 + 4,
.buswidth = DM9000_WIDTH_16,
.srom = 0,
};
@@ -98,7 +96,11 @@ static struct dm9000_platform_data dm9000_data = {
static struct resource dm9000_resources[] = {
[0] = {
.start = AT91_CHIPSELECT_2,
- .size = 8,
+ .size = 4,
+ },
+ [1] = {
+ .start = AT91_CHIPSELECT_2 + 4,
+ .size = 4,
},
};