summaryrefslogtreecommitdiffstats
path: root/drivers/nor/cfi_flash_amd.c
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2009-10-04 01:09:19 +0200
committerJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2009-10-20 15:02:31 +0200
commitc495fe0fcd4b6d31cd7383b592c3781d619c25fc (patch)
treef49289a7dde9bc4bce6a65fa50a03746c1160c27 /drivers/nor/cfi_flash_amd.c
parent998f9ee2f373b17d67e50c6ff072ba3a8f5e53b2 (diff)
downloadbarebox-c495fe0fcd4b6d31cd7383b592c3781d619c25fc.tar.gz
barebox-c495fe0fcd4b6d31cd7383b592c3781d619c25fc.tar.xz
cfi new: fix new disabling buffer support
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Diffstat (limited to 'drivers/nor/cfi_flash_amd.c')
-rw-r--r--drivers/nor/cfi_flash_amd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/nor/cfi_flash_amd.c b/drivers/nor/cfi_flash_amd.c
index 05274c3b8a..b92836b059 100644
--- a/drivers/nor/cfi_flash_amd.c
+++ b/drivers/nor/cfi_flash_amd.c
@@ -137,6 +137,8 @@ static int amd_flash_write_cfibuffer (flash_info_t * info, ulong dest, const uch
"buffer write");
return retcode;
}
+#else
+#define amd_flash_write_cfibuffer NULL
#endif /* CONFIG_CFI_BUFFER_WRITE */
struct cfi_cmd_set cfi_cmd_set_amd = {