summaryrefslogtreecommitdiffstats
path: root/arch/arm/boards/at91rm9200ek
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2011-07-16 13:44:28 +0800
committerJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2011-07-18 07:57:50 +0800
commit643b2f620f25ef814ea711ad59bb8fe5f0f7c183 (patch)
treed4541cef337b4d19a6ad93bad866dac7e79912ce /arch/arm/boards/at91rm9200ek
parent126c9b69cf6241673e0ccecc542ed3b9935308df (diff)
downloadbarebox-643b2f620f25ef814ea711ad59bb8fe5f0f7c183.tar.gz
barebox-643b2f620f25ef814ea711ad59bb8fe5f0f7c183.tar.xz
at91: switch to all resource declaration to "struct resource"
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Diffstat (limited to 'arch/arm/boards/at91rm9200ek')
-rw-r--r--arch/arm/boards/at91rm9200ek/init.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/arch/arm/boards/at91rm9200ek/init.c b/arch/arm/boards/at91rm9200ek/init.c
index a449326d5c..b21dc5fb7d 100644
--- a/arch/arm/boards/at91rm9200ek/init.c
+++ b/arch/arm/boards/at91rm9200ek/init.c
@@ -34,10 +34,17 @@
#include <mach/gpio.h>
#include <mach/io.h>
+static struct resource cfi_resources[] = {
+ [0] = {
+ .start = AT91_CHIPSELECT_0,
+ },
+};
+
static struct device_d cfi_dev = {
.id = 0,
.name = "cfi_flash",
- .map_base = AT91_CHIPSELECT_0,
+ .num_resources = ARRAY_SIZE(cfi_resources),
+ .resource = cfi_resources,
};
static struct at91_ether_platform_data ether_pdata = {