summaryrefslogtreecommitdiff
path: root/drivers/dataflash.c
diff options
context:
space:
mode:
authorJustin Waters <justin.waters@timesys.com>2008-09-25 15:17:29 -0400
committerJustin Waters <justin.waters@timesys.com>2008-09-25 15:17:29 -0400
commitfa7af8eb7a16e0b3755f77994b838f1f6129a624 (patch)
tree0b2b5c3296532ed82e8d5f40b8dced1d140355f1 /drivers/dataflash.c
parente5f5802c95b218ab74f4268584835aa13cb2d36d (diff)
Fix Dataflash addressing error1.3.0-at91-200809251917
The dataflash addressing was incorrect in the select function. It was testing the pointer address instead of the actual address. This caused any dataflash read or write operations to fail. Signed-off-by: Justin Waters <justin.waters@timesys.com>
Diffstat (limited to 'drivers/dataflash.c')
-rw-r--r--drivers/dataflash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dataflash.c b/drivers/dataflash.c
index ec149ebbff..ff4ebd514d 100644
--- a/drivers/dataflash.c
+++ b/drivers/dataflash.c
@@ -306,7 +306,7 @@ AT91PS_DataFlash AT91F_DataflashSelect (AT91PS_DataFlash pFlash,
for (i = 0; i < CFG_MAX_DATAFLASH_BANKS; i++)
if ( dataflash_info[i].id
- && ((((int) addr) & 0xFF000000) ==
+ && ((*addr & 0xFF000000) ==
dataflash_info[i].logical_address)) {
addr_valid = 1;
break;