diff options
author | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2012-12-28 20:16:11 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2013-01-07 18:56:58 +0100 |
commit | 398f4b17dae4cc7d3703926c46c4baa88515ef30 (patch) | |
tree | b26277a0a8307b4ab2ac5f7030dda97d409278bf /arch/arm/boards/at91sam9263ek | |
parent | 29597813dcfa9008f26a65002ee0e3f0979326f9 (diff) | |
download | barebox-398f4b17dae4cc7d3703926c46c4baa88515ef30.tar.gz barebox-398f4b17dae4cc7d3703926c46c4baa88515ef30.tar.xz |
at91: SMC: switch to platform_driver
This will allow to support multiple arch
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/boards/at91sam9263ek')
-rw-r--r-- | arch/arm/boards/at91sam9263ek/init.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/arm/boards/at91sam9263ek/init.c b/arch/arm/boards/at91sam9263ek/init.c index 7334bae2cc..a86c0fd510 100644 --- a/arch/arm/boards/at91sam9263ek/init.c +++ b/arch/arm/boards/at91sam9263ek/init.c @@ -35,7 +35,6 @@ #include <mach/gpio.h> #include <mach/io.h> #include <mach/at91sam9_smc.h> -#include <mach/sam9_smc.h> static struct atmel_nand_data nand_pdata = { .ale = 21, @@ -78,7 +77,7 @@ static void ek_add_device_nand(void) ek_nand_smc_config.mode |= AT91_SMC_DBW_8; /* configure chip-select 3 (NAND) */ - sam9_smc_configure(3, &ek_nand_smc_config); + sam9_smc_configure(0, 3, &ek_nand_smc_config); at91_add_device_nand(&nand_pdata); } |