[U-Boot-Users] [PATCH] Fix incorrect address test in AT91F_DataflashSelect().

michael trimarchi at gandalf.sssup.it
Wed Feb 6 13:04:57 CET 2008


Hi,

Stelian Pop wrote:
> Signed-off-by: Stelian Pop <stelian at popies.net>
> ---
>  drivers/mtd/dataflash.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/mtd/dataflash.c b/drivers/mtd/dataflash.c
> index 4084ff7..2421407 100644
> --- a/drivers/mtd/dataflash.c
> +++ b/drivers/mtd/dataflash.c
> @@ -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;
>   

I will send this fix to mailing list 4 month ago :).

Is still present?

regards michael





More information about the U-Boot mailing list