diff options
author | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2011-07-16 13:44:28 +0800 |
---|---|---|
committer | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2011-07-18 07:57:50 +0800 |
commit | 643b2f620f25ef814ea711ad59bb8fe5f0f7c183 (patch) | |
tree | d4541cef337b4d19a6ad93bad866dac7e79912ce /arch/arm/boards/at91sam9263ek | |
parent | 126c9b69cf6241673e0ccecc542ed3b9935308df (diff) | |
download | barebox-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/at91sam9263ek')
-rw-r--r-- | arch/arm/boards/at91sam9263ek/init.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/arch/arm/boards/at91sam9263ek/init.c b/arch/arm/boards/at91sam9263ek/init.c index 9a763b3cad..fe69305a9a 100644 --- a/arch/arm/boards/at91sam9263ek/init.c +++ b/arch/arm/boards/at91sam9263ek/init.c @@ -87,11 +87,18 @@ static void ek_add_device_nand(void) at91_add_device_nand(&nand_pdata); } +static struct resource cfi_resources[] = { + [0] = { + .start = AT91_CHIPSELECT_0, + .size = 8 * 1024 * 1024, + }, +}; + static struct device_d cfi_dev = { .id = -1, .name = "cfi_flash", - .map_base = AT91_CHIPSELECT_0, - .size = 8 * 1024 * 1024, + .num_resources = ARRAY_SIZE(cfi_resources), + .resource = cfi_resources, }; static struct at91_ether_platform_data macb_pdata = { |