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/at91sam9261ek | |
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/at91sam9261ek')
-rw-r--r-- | arch/arm/boards/at91sam9261ek/init.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/arch/arm/boards/at91sam9261ek/init.c b/arch/arm/boards/at91sam9261ek/init.c index b1388e183a..3def38e136 100644 --- a/arch/arm/boards/at91sam9261ek/init.c +++ b/arch/arm/boards/at91sam9261ek/init.c @@ -95,11 +95,18 @@ static struct dm9000_platform_data dm9000_data = { .srom = 0, }; +static struct resource dm9000_resources[] = { + [0] = { + .start = AT91_CHIPSELECT_2, + .size = 8, + }, +}; + static struct device_d dm9000_dev = { .id = 0, .name = "dm9000", - .map_base = AT91_CHIPSELECT_2, - .size = 8, + .num_resources = ARRAY_SIZE(dm9000_resources), + .resource = dm9000_resources, .platform_data = &dm9000_data, }; |