[U-Boot-Users] [PATCH] Bug fix for patched cfi_flash.c return code

Chu hanjin-r52514 Hanjin.Chu at freescale.com
Wed Mar 30 14:04:34 CEST 2005


This is a bug-fix patch that needs  to be applied  _after_  latest York cfi_flash.c patch. 
This patch fixes the return value in the function named
 static int flash_write_cfiword (flash_info_t * info, ulong dest, cfiword_t cword)

Attached is the patch for this bug fix.

Log Entry:

* Patched by Dave Liu, 24 Mar 2005
  Fix a return code bug in the cfi_flash driver routine named flash_write_cfiword(). 

Index: drivers/cfi_flash.c
RCS file: /cm/vault/u-boot/u-boot/drivers/cfi_flash.c,v
retrieving revision
retrieving revision
diff -u -r1. -r1.
--- drivers/cfi_flash.c	16 Feb 2005 18:22:02 -0000
+++ drivers/cfi_flash.c	22 Mar 2005 13:30:56 -0000
@@ -1355,7 +1355,7 @@
 		enable_interrupts ();
 	retcode = flash_full_status_check (info, cptr, cword, info->write_tout, "write"); 
-	return flag;
+	return retcode;

More information about the U-Boot mailing list