summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorStelian Pop <stelian@popies.net>2008-01-14 22:08:14 +0100
committerWolfgang Denk <wd@denx.de>2008-02-14 00:37:23 +0100
commitc77ce474b1c57b13e9d36d9830f147966c143694 (patch)
treea06f98e6c46c259ca7c602008f0d34b9a6859b87 /drivers
parentd9ad115bbf7bb0842de7dbd2502b7e430f83cc3d (diff)
downloadu-boot-imx-c77ce474b1c57b13e9d36d9830f147966c143694.zip
u-boot-imx-c77ce474b1c57b13e9d36d9830f147966c143694.tar.gz
u-boot-imx-c77ce474b1c57b13e9d36d9830f147966c143694.tar.bz2
Fix incorrect address test in AT91F_DataflashSelect().
Signed-off-by: Stelian Pop <stelian@popies.net>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mtd/dataflash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/dataflash.c b/drivers/mtd/dataflash.c
index 91903c8..3ebb706 100644
--- a/drivers/mtd/dataflash.c
+++ b/drivers/mtd/dataflash.c
@@ -304,7 +304,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) ==
+ && ((((int) *addr) & 0xFF000000) ==
dataflash_info[i].logical_address)) {
addr_valid = 1;
break;