Fix incorrect address test in AT91F_DataflashSelect
PATCH 1/1 Fix incorrect address test in AT91F_DataflashSelect
Fix incorrect address test in AT91F_DataflashSelect().
Signed-off-by Stelian Pop <[email protected]>
--- drivers/mtd/dataflash.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/mtd/dataflash.c +1 -1
@@ -309,7 +309,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 ;
Signature · 5 lines
1.5.3.3 -- Stelian Pop <[email protected]>
Wolfgang Denk
AppliedPATCH 1/1 Fix incorrect address test in AT91F_DataflashSelect
Quoted 3 lines · In message <1200344894.5988.7.camel@galileo> you wrote:
Fix incorrect address test in
AT91F_DataflashSelect().Signed-off-by Stelian Pop <[email protected]>
Applied, thanks.
Best regards,
Wolfgang Denk
Signature · 5 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Earth -- mother of the most beautiful women in the universe. -- Apollo, "Who Mourns for Adonais?" stardate 3468.1